projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused argument. NFC.
[oota-llvm.git]
/
lib
/
Target
/
PowerPC
/
MCTargetDesc
/
PPCMCAsmInfo.cpp
diff --git
a/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
b/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
index e2f84ba10b3e3748da47e51589e32951fc4ce3d4..d8fab5b7c01a2f7d78c8ae7b32a9188f6847b32d 100644
(file)
--- a/
lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
+++ b/
lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
@@
-28,25
+28,31
@@
PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit, const Triple& T) {
ExceptionsType = ExceptionHandling::DwarfCFI;
if (!is64Bit)
ExceptionsType = ExceptionHandling::DwarfCFI;
if (!is64Bit)
- Data64bitsDirective =
0;
// We can't emit a 64-bit unit in PPC32 mode.
+ Data64bitsDirective =
nullptr;
// We can't emit a 64-bit unit in PPC32 mode.
AssemblerDialect = 1; // New-Style mnemonics.
SupportsDebugInformation= true; // Debug information.
AssemblerDialect = 1; // New-Style mnemonics.
SupportsDebugInformation= true; // Debug information.
- //
old assembler lacks some directives
+ //
The installed assembler for OSX < 10.6 lacks some directives.
// FIXME: this should really be a check on the assembler characteristics
// rather than OS version
if (T.isMacOSX() && T.isMacOSXVersionLT(10, 6))
HasWeakDefCanBeHiddenDirective = false;
// FIXME: this should really be a check on the assembler characteristics
// rather than OS version
if (T.isMacOSX() && T.isMacOSXVersionLT(10, 6))
HasWeakDefCanBeHiddenDirective = false;
+
+ UseIntegratedAssembler = true;
}
}
-void PPCLinuxMCAsmInfo::anchor() { }
+void PPCELFMCAsmInfo::anchor() { }
+
+PPCELFMCAsmInfo::PPCELFMCAsmInfo(bool is64Bit, const Triple& T) {
+ // FIXME: This is not always needed. For example, it is not needed in the
+ // v2 abi.
+ NeedsLocalForSize = true;
-PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
if (is64Bit) {
PointerSize = CalleeSaveStackSlotSize = 8;
}
if (is64Bit) {
PointerSize = CalleeSaveStackSlotSize = 8;
}
- IsLittleEndian =
fals
e;
+ IsLittleEndian =
T.getArch() == Triple::ppc64l
e;
// ".comm align is in bytes but .align is pow-2."
AlignmentIsInBytes = false;
// ".comm align is in bytes but .align is pow-2."
AlignmentIsInBytes = false;
@@
-62,14
+68,16
@@
PPCLinuxMCAsmInfo::PPCLinuxMCAsmInfo(bool is64Bit) {
DollarIsPC = true;
// Set up DWARF directives
DollarIsPC = true;
// Set up DWARF directives
- HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
MinInstAlignment = 4;
// Exceptions handling
ExceptionsType = ExceptionHandling::DwarfCFI;
ZeroDirective = "\t.space\t";
MinInstAlignment = 4;
// Exceptions handling
ExceptionsType = ExceptionHandling::DwarfCFI;
ZeroDirective = "\t.space\t";
- Data64bitsDirective = is64Bit ? "\t.quad\t" :
0
;
+ Data64bitsDirective = is64Bit ? "\t.quad\t" :
nullptr
;
AssemblerDialect = 1; // New-Style mnemonics.
AssemblerDialect = 1; // New-Style mnemonics.
+ LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
+
+ UseIntegratedAssembler = true;
}
}