diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-14 01:35:55 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-14 01:35:55 +0000 |
| commit | b7e221ba5530d2da215a47d7adcecc87e9506d8d (patch) | |
| tree | 398705e25f6f6b6676842637bd3af37820bc137c /llvm/lib/Transforms/Scalar | |
| parent | 18783cea3fd62ef2cef4020c4c41307201652215 (diff) | |
| download | bcm5719-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.cpp | 2 |
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 |

