summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-11-17 18:48:57 +0000
committerManman Ren <manman.ren@gmail.com>2013-11-17 18:48:57 +0000
commitc9e395e9acffd2b9ed205f246ea0c5f08aff9758 (patch)
tree45ed4697878e30672c30ee5783cbdb8ceb0737aa /clang/lib/Frontend/CompilerInvocation.cpp
parent2085cccf99517f34130f3853319ee154e03fdb26 (diff)
downloadbcm5719-llvm-c9e395e9acffd2b9ed205f246ea0c5f08aff9758.tar.gz
bcm5719-llvm-c9e395e9acffd2b9ed205f246ea0c5f08aff9758.zip
Debug Info Verifier: fix when to find debug info nodes and when to verify them.
We used to collect debug info MDNodes in doInitialization and verify them in doFinalization. That is incorrect since MDNodes can be modified by passes run between doInitialization and doFinalization. To fix the problem, we handle debug info MDNodes that can be reached from a function in runOnFunction (i.e we collect those nodes by calling processDeclare, processValue and processLocation, and then verify them in runOnFunction). We handle debug info MDNodes that can be reached from named metadata in doFinalization. This is in line with how Verifier handles module-level data (they are verified in doFinalization). rdar://15472296 llvm-svn: 194974
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud