D34059: Get the file name for the symbol from the Module, not the SourceManager.
commit3d05c56ef25ee3d7cf1741c226a60c4bc6d6dd1a
authorVassil Vassilev <v.g.vassilev@gmail.com>
Sun, 27 Aug 2017 11:27:30 +0000 (27 11:27 +0000)
committerVassil Vassilev <v.g.vassilev@gmail.com>
Sun, 27 Aug 2017 11:27:30 +0000 (27 11:27 +0000)
treedaecfa517c40a159955f47623ff24cae170cf996
parent4d54e543abd5d0a8b0a321f8c292252f4895693a
D34059: Get the file name for the symbol from the Module, not the SourceManager.

This allows multi-module / incremental compilation environments to have unique
initializer symbols.

Patch by Axel Naumann with minor modifications by me!

llvm-svn: 311844
clang/lib/CodeGen/CGDeclCXX.cpp
clang/unittests/CodeGen/CMakeLists.txt