summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-12 04:48:45 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-02-12 04:48:45 +0000
commit75627ad8baf9f623953042a3204570a8d211ee94 (patch)
tree0cd2c9f749391f60aa5aa605598d4de77f22e192 /llvm/lib/Object/ELFObjectFile.cpp
parentf285256f72a50440c8cab3537581f4d5e9ae260a (diff)
downloadbcm5719-llvm-75627ad8baf9f623953042a3204570a8d211ee94.tar.gz
bcm5719-llvm-75627ad8baf9f623953042a3204570a8d211ee94.zip
Fix the rewriter that broke with r149987.
r149987 changed the way parsing happens inside an @implementation; it aggregates the declarations inside and reports them together as a DeclGroup. This had the side effect that function declarations were reported together with their definition, while the rewriter expected for function declarations to be reported immediately to the consumer and thus not have a body. Fix this by having the rewriter actually check with isThisDeclarationADefinition() to make sure the body comes from the current decl before rewriting it. llvm-svn: 150325
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud