summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2014-07-29 06:10:47 +0000
committerTobias Grosser <tobias@grosser.es>2014-07-29 06:10:47 +0000
commit01b923d55b63ca55a4ff04c835531e4f185c1463 (patch)
tree2f3d15a9f0f0cd6cf29c59ede0f81370c69eec8d /clang/lib
parentd8a5273993b11cbae7fb3690ad9b3025b6ea511b (diff)
downloadbcm5719-llvm-01b923d55b63ca55a4ff04c835531e4f185c1463.tar.gz
bcm5719-llvm-01b923d55b63ca55a4ff04c835531e4f185c1463.zip
Emit column debug information for loads
This allows us to give more precise diagnostics. Diego kindly tested the impact on debug info size: "The increase on average debug sizes is 0.1%. The total file size increase is ~0%." llvm-svn: 214162
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 512b323ba10..d3a01abf721 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -1258,6 +1258,9 @@ void CodeGenFunction::EmitStoreOfScalar(llvm::Value *value, LValue lvalue,
/// method emits the address of the lvalue, then loads the result as an rvalue,
/// returning the rvalue.
RValue CodeGenFunction::EmitLoadOfLValue(LValue LV, SourceLocation Loc) {
+ if (CGDebugInfo *DI = getDebugInfo())
+ DI->EmitLocation(Builder, Loc, true);
+
if (LV.isObjCWeak()) {
// load of a __weak object.
llvm::Value *AddrWeakObj = LV.getAddress();
OpenPOWER on IntegriCloud