llvm-6502/lib/Transforms
Duncan P. N. Exon Smith afb02d5d0d StripSymbols: Use DIGlobalVariable::getConstant() instead of getGlobal()
The only difference between the two is a `dyn_cast<>` to
`GlobalVariable`.  If optimizations have left anything behind when a
global gets replaced, then it doesn't seem like the debug info is dead.

I can't seem to find an optimization that would leave behind a
non-`GlobalVariable` without nulling the reference entirely, so I
haven't added a testcase (but I'll be deleting `getGlobal()` in a future
commit).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234792 91177308-0d34-0410-b5e6-96231b3b80d8
2015-04-13 20:13:30 +00:00
..
Hello
InstCombine GCC complains thusly: "attributes at the beginning of statement are ignored [-Werror=attributes]". Very well then! NFC 2015-04-13 20:03:08 +00:00
Instrumentation
IPO StripSymbols: Use DIGlobalVariable::getConstant() instead of getGlobal() 2015-04-13 20:13:30 +00:00
ObjCARC
Scalar
Utils
Vectorize
CMakeLists.txt
LLVMBuild.txt
Makefile