summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-10-13 21:45:18 +0000
committerEric Christopher <echristo@apple.com>2011-10-13 21:45:18 +0000
commit7cdf9486015e6a220d60e999313c12110ee8a12f (patch)
treed842086add7c33c32a47b204a1736207330be0be /clang/lib/CodeGen/CodeGenFunction.cpp
parent76933f4c0b11f8920eebdbcdc2db2abd84bcea8d (diff)
downloadbcm5719-llvm-7cdf9486015e6a220d60e999313c12110ee8a12f.tar.gz
bcm5719-llvm-7cdf9486015e6a220d60e999313c12110ee8a12f.zip
Recommit:
Start handling debug line and scope information better: Migrate most of the location setting within the larger API in CGDebugInfo and update a lot of callers. Remove the existing file/scope change machinery in UpdateLineDirectiveRegion and replace it with DILexicalBlockFile usage. Finishes off the rest of rdar://10246360 after fixing a few bugs that were exposed in gdb testsuite testing. llvm-svn: 141893
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 2c6e7b0acdd..8191f021da4 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -351,6 +351,9 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy,
if (Ty->isVariablyModifiedType())
EmitVariablyModifiedType(Ty);
}
+ // Emit a location at the end of the prologue.
+ if (CGDebugInfo *DI = getDebugInfo())
+ DI->EmitLocation(Builder, StartLoc);
}
void CodeGenFunction::EmitFunctionBody(FunctionArgList &Args) {
OpenPOWER on IntegriCloud