summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-11 22:49:34 +0000
committerChris Lattner <sabre@nondot.org>2009-08-11 22:49:34 +0000
commite655521a289c91fa645fd3bd9a4cb9e8f8994a6d (patch)
treec954fac464f7bbd3968d89cfcaba07bd71ac6972 /llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
parentb3788a24c6f48da4b2406945c4d06693ff152b66 (diff)
downloadbcm5719-llvm-e655521a289c91fa645fd3bd9a4cb9e8f8994a6d.tar.gz
bcm5719-llvm-e655521a289c91fa645fd3bd9a4cb9e8f8994a6d.zip
eliminate asmflavor from subtarget, PPCTAI is the only client
and each callee knows that it returns. llvm-svn: 78742
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
index 891252b8a9a..925e5907860 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
@@ -28,8 +28,8 @@ PPCDarwinTargetAsmInfo::PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM) {
bool isPPC64 = Subtarget->isPPC64();
if (!isPPC64)
- Data64bitsDirective = 0; // we can't emit a 64-bit unit
- AssemblerDialect = Subtarget->getAsmFlavor();
+ Data64bitsDirective = 0; // We can't emit a 64-bit unit in PPC32 mode.
+ AssemblerDialect = 0; // Old-Style mnemonics.
}
PPCLinuxTargetAsmInfo::PPCLinuxTargetAsmInfo(const PPCTargetMachine &TM) {
@@ -61,6 +61,6 @@ PPCLinuxTargetAsmInfo::PPCLinuxTargetAsmInfo(const PPCTargetMachine &TM) {
Data64bitsDirective = isPPC64 ? "\t.quad\t" : 0;
AlignmentIsInBytes = false;
LCOMMDirective = "\t.lcomm\t";
- AssemblerDialect = Subtarget->getAsmFlavor();
+ AssemblerDialect = 1; // New-Style mnemonics.
}
OpenPOWER on IntegriCloud