mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
don't bother trying to avoid emitting redundant constant pool alignment directives.
llvm-svn: 84512
This commit is contained in:
parent
385ca4ca8a
commit
1598caa700
@ -77,13 +77,10 @@ namespace {
|
||||
/// visibility that require non-lazy-pointers for indirect access.
|
||||
StringMap<std::string> HiddenGVNonLazyPtrs;
|
||||
|
||||
/// True if asm printer is printing a series of CONSTPOOL_ENTRY.
|
||||
bool InCPMode;
|
||||
public:
|
||||
explicit ARMAsmPrinter(formatted_raw_ostream &O, TargetMachine &TM,
|
||||
const MCAsmInfo *T, bool V)
|
||||
: AsmPrinter(O, TM, T, V), AFI(NULL), MCP(NULL),
|
||||
InCPMode(false) {
|
||||
: AsmPrinter(O, TM, T, V), AFI(NULL), MCP(NULL) {
|
||||
Subtarget = &TM.getSubtarget<ARMSubtarget>();
|
||||
}
|
||||
|
||||
@ -259,7 +256,6 @@ bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
if (Subtarget->isTargetDarwin())
|
||||
O << "\t" << CurrentFnName;
|
||||
O << "\n";
|
||||
InCPMode = false;
|
||||
} else {
|
||||
EmitAlignment(FnAlign, F);
|
||||
}
|
||||
@ -1027,17 +1023,8 @@ void ARMAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
|
||||
++EmittedInsts;
|
||||
|
||||
int Opc = MI->getOpcode();
|
||||
switch (Opc) {
|
||||
case ARM::CONSTPOOL_ENTRY:
|
||||
if (!InCPMode && AFI->isThumbFunction()) {
|
||||
EmitAlignment(2);
|
||||
InCPMode = true;
|
||||
}
|
||||
break;
|
||||
default: {
|
||||
if (InCPMode && AFI->isThumbFunction())
|
||||
InCPMode = false;
|
||||
}}
|
||||
if (Opc == ARM::CONSTPOOL_ENTRY)
|
||||
EmitAlignment(2);
|
||||
|
||||
// Call the autogenerated instruction printer routines.
|
||||
processDebugLoc(MI, true);
|
||||
|
Loading…
Reference in New Issue
Block a user