more SourceLocation lexicon change: instead of referring to the

"logical" location, refer to the "instantiation" location.

llvm-svn: 62316
This commit is contained in:
Chris Lattner
2009-01-16 07:36:28 +00:00
parent 3c91971b33
commit 8a42586c54
23 changed files with 135 additions and 141 deletions

View File

@@ -591,7 +591,7 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) {
if (const AnnotateAttr *AA = D->getAttr<AnnotateAttr>()) {
SourceManager &SM = Context.getSourceManager();
AddAnnotation(EmitAnnotateAttr(GV, AA,
SM.getLogicalLineNumber(D->getLocation())));
SM.getInstantiationLineNumber(D->getLocation())));
}
GV->setInitializer(Init);