mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 17:32:36 +00:00
Remove the xcore-file-directive option now that LLVM has proper support for
emitting file directives with one parameter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75787 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e68cd96b2
commit
f301c2299c
@ -41,12 +41,6 @@ using namespace llvm;
|
|||||||
|
|
||||||
STATISTIC(EmittedInsts, "Number of machine instrs printed");
|
STATISTIC(EmittedInsts, "Number of machine instrs printed");
|
||||||
|
|
||||||
static cl::opt<std::string> FileDirective("xcore-file-directive", cl::Optional,
|
|
||||||
cl::desc("Output a file directive into the assembly file"),
|
|
||||||
cl::Hidden,
|
|
||||||
cl::value_desc("filename"),
|
|
||||||
cl::init(""));
|
|
||||||
|
|
||||||
static cl::opt<unsigned> MaxThreads("xcore-max-threads", cl::Optional,
|
static cl::opt<unsigned> MaxThreads("xcore-max-threads", cl::Optional,
|
||||||
cl::desc("Maximum number of threads (for emulation thread-local storage)"),
|
cl::desc("Maximum number of threads (for emulation thread-local storage)"),
|
||||||
cl::Hidden,
|
cl::Hidden,
|
||||||
@ -72,7 +66,6 @@ namespace {
|
|||||||
bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
|
bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
|
||||||
unsigned AsmVariant, const char *ExtraCode);
|
unsigned AsmVariant, const char *ExtraCode);
|
||||||
|
|
||||||
void emitFileDirective(const std::string &filename);
|
|
||||||
void emitGlobalDirective(const std::string &name);
|
void emitGlobalDirective(const std::string &name);
|
||||||
void emitExternDirective(const std::string &name);
|
void emitExternDirective(const std::string &name);
|
||||||
|
|
||||||
@ -126,14 +119,6 @@ static void PrintEscapedString(const std::string &Str,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void XCoreAsmPrinter::
|
|
||||||
emitFileDirective(const std::string &name)
|
|
||||||
{
|
|
||||||
O << "\t.file\t\"";
|
|
||||||
PrintEscapedString(name, O);
|
|
||||||
O << "\"\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
void XCoreAsmPrinter::
|
void XCoreAsmPrinter::
|
||||||
emitGlobalDirective(const std::string &name)
|
emitGlobalDirective(const std::string &name)
|
||||||
{
|
{
|
||||||
@ -418,9 +403,6 @@ bool XCoreAsmPrinter::doInitialization(Module &M) {
|
|||||||
bool Result = AsmPrinter::doInitialization(M);
|
bool Result = AsmPrinter::doInitialization(M);
|
||||||
DW = getAnalysisIfAvailable<DwarfWriter>();
|
DW = getAnalysisIfAvailable<DwarfWriter>();
|
||||||
|
|
||||||
if (!FileDirective.empty())
|
|
||||||
emitFileDirective(FileDirective);
|
|
||||||
|
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user