summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-07 23:56:36 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-07 23:56:36 +0000
commit402bb388234c81dfdd4a16c03bf4314717f6fda5 (patch)
treeedaf5a1a832311bcefc718a6d0f54ed98559ec7d /llvm/lib
parentf4f54206d9591e8d5b11b7615ef7eb2b25b25312 (diff)
downloadbcm5719-llvm-402bb388234c81dfdd4a16c03bf4314717f6fda5.tar.gz
bcm5719-llvm-402bb388234c81dfdd4a16c03bf4314717f6fda5.zip
Keep track of which source locations are part of a macro argument
instantiation and improve diagnostics which are stem from macro arguments to trace the argument itself back through the layers of macro expansion. This requires some tricky handling of the source locations, as the argument appears to be expanded in the opposite direction from the surrounding macro. This patch provides helper routines that encapsulate the logic and explain the reasoning behind how we step through macros during diagnostic printing. This fixes the rest of the test cases originially in PR9279, and later split out into PR10214 and PR10215. There is still some more work we can do here to improve the macro backtrace, but those will follow as separate patches. llvm-svn: 134660
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud