diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-07-25 21:09:52 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-07-25 21:09:52 +0000 |
commit | d48db2115a51ac2c815c7786522d1e836aa5bc4c (patch) | |
tree | a6145325d4e5212b25581fa04d952a4c2e805c59 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 3ddf6aa50392ad0ef40689b104cd6d0f99e70904 (diff) | |
download | bcm5719-llvm-d48db2115a51ac2c815c7786522d1e836aa5bc4c.tar.gz bcm5719-llvm-d48db2115a51ac2c815c7786522d1e836aa5bc4c.zip |
Rename getInstantiationLineNumber to getExpansionLineNumber in both
SourceManager and FullSourceLoc.
llvm-svn: 135969
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index d7b6c7ec3df..290fe242c91 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1311,8 +1311,8 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) { if (const AnnotateAttr *AA = D->getAttr<AnnotateAttr>()) { SourceManager &SM = Context.getSourceManager(); - AddAnnotation(EmitAnnotateAttr(GV, AA, - SM.getInstantiationLineNumber(D->getLocation()))); + AddAnnotation(EmitAnnotateAttr( + GV, AA, SM.getExpansionLineNumber(D->getLocation()))); } GV->setInitializer(Init); |