summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/ASTConsumers.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-13 20:13:30 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-13 20:13:30 +0000
commit7fa6629d7d5df922c74b05152f2baa98f3462fc3 (patch)
treeb80927e7d8553bf3108dcd48b2cd82f4e095aeee /clang/lib/Frontend/ASTConsumers.cpp
parentfa92b4c9d8b86fb21c8c53e2985cc7086f30044e (diff)
downloadbcm5719-llvm-7fa6629d7d5df922c74b05152f2baa98f3462fc3.tar.gz
bcm5719-llvm-7fa6629d7d5df922c74b05152f2baa98f3462fc3.zip
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). llvm-svn: 234792
Diffstat (limited to 'clang/lib/Frontend/ASTConsumers.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud