diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:36:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-16 07:36:28 +0000 |
commit | 8a42586c54f6ec33b657d2c052740fdb52ce3a6c (patch) | |
tree | 457d3b7e94e51e302cb361e9029b43aeee644003 /clang/lib/CodeGen/CGDecl.cpp | |
parent | 3c91971b3391a6aa7f48ee11986813204006adf9 (diff) | |
download | bcm5719-llvm-8a42586c54f6ec33b657d2c052740fdb52ce3a6c.tar.gz bcm5719-llvm-8a42586c54f6ec33b657d2c052740fdb52ce3a6c.zip |
more SourceLocation lexicon change: instead of referring to the
"logical" location, refer to the "instantiation" location.
llvm-svn: 62316
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index db6aae6dfd7..1acebaed4b9 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -125,7 +125,8 @@ void CodeGenFunction::EmitStaticBlockVarDecl(const VarDecl &D) { if (const AnnotateAttr *AA = D.getAttr<AnnotateAttr>()) { SourceManager &SM = CGM.getContext().getSourceManager(); llvm::Constant *Ann = - CGM.EmitAnnotateAttr(GV, AA, SM.getLogicalLineNumber(D.getLocation())); + CGM.EmitAnnotateAttr(GV, AA, + SM.getInstantiationLineNumber(D.getLocation())); CGM.AddAnnotation(Ann); } |