summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-01-16 09:29:17 +0000
committerBill Wendling <isanbard@gmail.com>2007-01-16 09:29:17 +0000
commitc7b2ab9bdfbaa1a1acd188136d5539d6badf56ce (patch)
treefa0b89d54775badb45434a3acb76062f8eb8f75f /llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
parent5488ade1548bbf95cdf481007e105fc2db0ba7a4 (diff)
downloadbcm5719-llvm-c7b2ab9bdfbaa1a1acd188136d5539d6badf56ce.tar.gz
bcm5719-llvm-c7b2ab9bdfbaa1a1acd188136d5539d6badf56ce.zip
Instead of yet another enum indicating the "assembly language flavor",
just use the one that's in the subtarget. llvm-svn: 33255
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
index 7912f705738..b9f5849bdf6 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
@@ -16,12 +16,6 @@
#include "llvm/Function.h"
using namespace llvm;
-// ASM variant to use.
-enum {
- PPC_OLD_MNEMONICS = 0,
- PPC_NEW_MNEMONICS = 1
-};
-
PPCTargetAsmInfo::PPCTargetAsmInfo(const PPCTargetMachine &TM) {
bool isPPC64 = TM.getSubtargetImpl()->isPPC64();
@@ -32,7 +26,7 @@ PPCTargetAsmInfo::PPCTargetAsmInfo(const PPCTargetMachine &TM) {
LCOMMDirective = "\t.lcomm\t";
InlineAsmStart = "# InlineAsm Start";
InlineAsmEnd = "# InlineAsm End";
- AssemblerDialect = PPC_OLD_MNEMONICS;
+ AssemblerDialect = TM.getSubtargetImpl()->getAsmFlavor();
NeedsSet = true;
AddressSize = isPPC64 ? 8 : 4;
@@ -63,7 +57,6 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const PPCTargetMachine &TM)
UsedDirective = "\t.no_dead_strip\t";
WeakRefDirective = "\t.weak_reference\t";
HiddenDirective = "\t.private_extern\t";
- AssemblerDialect = PPC_NEW_MNEMONICS;
}
LinuxTargetAsmInfo::LinuxTargetAsmInfo(const PPCTargetMachine &TM)
OpenPOWER on IntegriCloud