mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Remove r130409, as requested by Chris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133536 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,7 +32,6 @@
|
|||||||
#include "llvm/ADT/StringExtras.h"
|
#include "llvm/ADT/StringExtras.h"
|
||||||
#include "llvm/ADT/STLExtras.h"
|
#include "llvm/ADT/STLExtras.h"
|
||||||
#include "llvm/Support/CFG.h"
|
#include "llvm/Support/CFG.h"
|
||||||
#include "llvm/Support/CommandLine.h"
|
|
||||||
#include "llvm/Support/Debug.h"
|
#include "llvm/Support/Debug.h"
|
||||||
#include "llvm/Support/Dwarf.h"
|
#include "llvm/Support/Dwarf.h"
|
||||||
#include "llvm/Support/ErrorHandling.h"
|
#include "llvm/Support/ErrorHandling.h"
|
||||||
@@ -42,11 +41,6 @@
|
|||||||
#include <cctype>
|
#include <cctype>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
static cl::opt<bool>
|
|
||||||
EnableDebugInfoComment("enable-debug-info-comment", cl::Hidden,
|
|
||||||
cl::desc("Enable debug info comments"));
|
|
||||||
|
|
||||||
|
|
||||||
// Make virtual table appear in this compilation unit.
|
// Make virtual table appear in this compilation unit.
|
||||||
AssemblyAnnotationWriter::~AssemblyAnnotationWriter() {}
|
AssemblyAnnotationWriter::~AssemblyAnnotationWriter() {}
|
||||||
|
|
||||||
@@ -1767,18 +1761,6 @@ void AssemblyWriter::printBasicBlock(const BasicBlock *BB) {
|
|||||||
if (AnnotationWriter) AnnotationWriter->emitBasicBlockEndAnnot(BB, Out);
|
if (AnnotationWriter) AnnotationWriter->emitBasicBlockEndAnnot(BB, Out);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// printDebugLoc - Print DebugLoc.
|
|
||||||
static void printDebugLoc(const DebugLoc &DL, formatted_raw_ostream &OS) {
|
|
||||||
OS << DL.getLine() << ":" << DL.getCol();
|
|
||||||
if (MDNode *N = DL.getInlinedAt(getGlobalContext())) {
|
|
||||||
DebugLoc IDL = DebugLoc::getFromDILocation(N);
|
|
||||||
if (!IDL.isUnknown()) {
|
|
||||||
OS << "@";
|
|
||||||
printDebugLoc(IDL,OS);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// printInfoComment - Print a little comment after the instruction indicating
|
/// printInfoComment - Print a little comment after the instruction indicating
|
||||||
/// which slot it occupies.
|
/// which slot it occupies.
|
||||||
///
|
///
|
||||||
@@ -1786,43 +1768,6 @@ void AssemblyWriter::printInfoComment(const Value &V) {
|
|||||||
if (AnnotationWriter) {
|
if (AnnotationWriter) {
|
||||||
AnnotationWriter->printInfoComment(V, Out);
|
AnnotationWriter->printInfoComment(V, Out);
|
||||||
return;
|
return;
|
||||||
} else if (EnableDebugInfoComment) {
|
|
||||||
bool Padded = false;
|
|
||||||
if (const Instruction *I = dyn_cast<Instruction>(&V)) {
|
|
||||||
const DebugLoc &DL = I->getDebugLoc();
|
|
||||||
if (!DL.isUnknown()) {
|
|
||||||
if (!Padded) {
|
|
||||||
Out.PadToColumn(50);
|
|
||||||
Padded = true;
|
|
||||||
Out << ";";
|
|
||||||
}
|
|
||||||
Out << " [debug line = ";
|
|
||||||
printDebugLoc(DL,Out);
|
|
||||||
Out << "]";
|
|
||||||
}
|
|
||||||
if (const DbgDeclareInst *DDI = dyn_cast<DbgDeclareInst>(I)) {
|
|
||||||
const MDNode *Var = DDI->getVariable();
|
|
||||||
if (!Padded) {
|
|
||||||
Out.PadToColumn(50);
|
|
||||||
Padded = true;
|
|
||||||
Out << ";";
|
|
||||||
}
|
|
||||||
if (Var && Var->getNumOperands() >= 2)
|
|
||||||
if (MDString *MDS = dyn_cast_or_null<MDString>(Var->getOperand(2)))
|
|
||||||
Out << " [debug variable = " << MDS->getString() << "]";
|
|
||||||
}
|
|
||||||
else if (const DbgValueInst *DVI = dyn_cast<DbgValueInst>(I)) {
|
|
||||||
const MDNode *Var = DVI->getVariable();
|
|
||||||
if (!Padded) {
|
|
||||||
Out.PadToColumn(50);
|
|
||||||
Padded = true;
|
|
||||||
Out << ";";
|
|
||||||
}
|
|
||||||
if (Var && Var->getNumOperands() >= 2)
|
|
||||||
if (MDString *MDS = dyn_cast_or_null<MDString>(Var->getOperand(2)))
|
|
||||||
Out << " [debug variable = " << MDS->getString() << "]";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user