summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-14 01:35:55 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-04-14 01:35:55 +0000
commitb7e221ba5530d2da215a47d7adcecc87e9506d8d (patch)
tree398705e25f6f6b6676842637bd3af37820bc137c /llvm/lib/Transforms/Scalar
parent18783cea3fd62ef2cef4020c4c41307201652215 (diff)
downloadbcm5719-llvm-b7e221ba5530d2da215a47d7adcecc87e9506d8d.tar.gz
bcm5719-llvm-b7e221ba5530d2da215a47d7adcecc87e9506d8d.zip
DebugInfo: Gut DILocation
This is along the same lines as r234832, but for `DILocation`. Clean out all accessors from `DILocation`. Any callers should be using `MDLocation` directly (e.g., via `operator->()`). llvm-svn: 234835
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r--llvm/lib/Transforms/Scalar/SampleProfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SampleProfile.cpp b/llvm/lib/Transforms/Scalar/SampleProfile.cpp
index 705d042a809..6487ea64da5 100644
--- a/llvm/lib/Transforms/Scalar/SampleProfile.cpp
+++ b/llvm/lib/Transforms/Scalar/SampleProfile.cpp
@@ -226,7 +226,7 @@ unsigned SampleProfileLoader::getInstWeight(Instruction &Inst) {
DILocation DIL = DLoc.get();
int LOffset = Lineno - HeaderLineno;
- unsigned Discriminator = DIL.getDiscriminator();
+ unsigned Discriminator = DIL->getDiscriminator();
unsigned Weight = Samples->samplesAt(LOffset, Discriminator);
DEBUG(dbgs() << " " << Lineno << "." << Discriminator << ":" << Inst
<< " (line offset: " << LOffset << "." << Discriminator
OpenPOWER on IntegriCloud