mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-14 13:57:51 +00:00
Darwin doesn't support #APP/#NO_APP
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26066 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d6c65ea924
commit
418caa1356
@ -246,8 +246,7 @@ namespace {
|
|||||||
DarwinDwarfWriter DW;
|
DarwinDwarfWriter DW;
|
||||||
|
|
||||||
DarwinAsmPrinter(std::ostream &O, TargetMachine &TM)
|
DarwinAsmPrinter(std::ostream &O, TargetMachine &TM)
|
||||||
: PPCAsmPrinter(O, TM), DW(O, this)
|
: PPCAsmPrinter(O, TM), DW(O, this) {
|
||||||
{
|
|
||||||
CommentString = ";";
|
CommentString = ";";
|
||||||
GlobalPrefix = "_";
|
GlobalPrefix = "_";
|
||||||
PrivateGlobalPrefix = "L"; // Marker for constant pool idxs
|
PrivateGlobalPrefix = "L"; // Marker for constant pool idxs
|
||||||
@ -258,6 +257,7 @@ namespace {
|
|||||||
LCOMMDirective = "\t.lcomm\t";
|
LCOMMDirective = "\t.lcomm\t";
|
||||||
StaticCtorsSection = ".mod_init_func";
|
StaticCtorsSection = ".mod_init_func";
|
||||||
StaticDtorsSection = ".mod_term_func";
|
StaticDtorsSection = ".mod_term_func";
|
||||||
|
InlineAsmStart = InlineAsmEnd = ""; // Don't use #APP/#NO_APP
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual const char *getPassName() const {
|
virtual const char *getPassName() const {
|
||||||
|
@ -60,6 +60,7 @@ bool X86SharedAsmPrinter::doInitialization(Module &M) {
|
|||||||
forDarwin = true;
|
forDarwin = true;
|
||||||
StaticCtorsSection = ".mod_init_func";
|
StaticCtorsSection = ".mod_init_func";
|
||||||
StaticDtorsSection = ".mod_term_func";
|
StaticDtorsSection = ".mod_term_func";
|
||||||
|
InlineAsmStart = InlineAsmEnd = ""; // Don't use #APP/#NO_APP
|
||||||
break;
|
break;
|
||||||
case X86Subtarget::isCygwin:
|
case X86Subtarget::isCygwin:
|
||||||
GlobalPrefix = "_";
|
GlobalPrefix = "_";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user