mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
Switch the code generator (except the JIT) onto the new DebugLoc
representation. This eliminates the 'DILocation' MDNodes for file/line/col tuples from -O0 -g codegen. This remove the old DebugLoc class, making it a typedef for DebugLoc, I'll rename NewDebugLoc next. I didn't update the JIT to use the new apis, so it will continue to work, but be as slow as before. Someone should eventually do this or, better yet, rip out the JIT debug info stuff and build the JIT on top of MC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100209 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1221,17 +1221,16 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const {
|
||||
|
||||
// TODO: print InlinedAtLoc information
|
||||
|
||||
DILocation DLT = MF->getDILocation(debugLoc);
|
||||
DIScope Scope = DLT.getScope();
|
||||
DIScope Scope(debugLoc.getScope(MF->getFunction()->getContext()));
|
||||
OS << " dbg:";
|
||||
// Omit the directory, since it's usually long and uninteresting.
|
||||
if (Scope.Verify())
|
||||
OS << Scope.getFilename();
|
||||
else
|
||||
OS << "<unknown>";
|
||||
OS << ':' << DLT.getLineNumber();
|
||||
if (DLT.getColumnNumber() != 0)
|
||||
OS << ':' << DLT.getColumnNumber();
|
||||
OS << ':' << debugLoc.getLine();
|
||||
if (debugLoc.getCol() != 0)
|
||||
OS << ':' << debugLoc.getCol();
|
||||
}
|
||||
|
||||
OS << "\n";
|
||||
|
Reference in New Issue
Block a user