mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-16 11:24:39 +00:00
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->()`). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234835 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user