Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Unified Diff: lib/Target/ARM/ARMAsmPrinter.h

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/Target/ARM/ARM.h ('k') | lib/Target/ARM/ARMAsmPrinter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/Target/ARM/ARMAsmPrinter.h
diff --git a/lib/Target/ARM/ARMAsmPrinter.h b/lib/Target/ARM/ARMAsmPrinter.h
index 5ff20ce777cb81fc5d5e4462466222dd88a4fb03..7f2c86e6e39eceb40482828da9315d4904381a92 100644
--- a/lib/Target/ARM/ARMAsmPrinter.h
+++ b/lib/Target/ARM/ARMAsmPrinter.h
@@ -74,9 +74,15 @@ public:
void EmitInstruction(const MachineInstr *MI) override;
bool runOnMachineFunction(MachineFunction &F) override;
+ // @LOCALMOD-START
+ // Usually this does nothing on ARM as constants pools are handled with
+ // custom code (for constant islands).
+ // When not using constant islands, fall back to the default implementation.
void EmitConstantPool() override {
- // we emit constant pools customly!
+ if (!Subtarget->useConstIslands()) AsmPrinter::EmitConstantPool();
}
+ // @LOCALMOD-END
+
void EmitFunctionBodyEnd() override;
void EmitFunctionEntryLabel() override;
void EmitStartOfAsmFile(Module &M) override;
@@ -85,6 +91,17 @@ public:
// lowerOperand - Convert a MachineOperand into the equivalent MCOperand.
bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp);
+
+ // @LOCALMOD-START
+ /// UseReadOnlyJumpTables - true if JumpTableInfo must be in rodata.
+ bool UseReadOnlyJumpTables() const override;
+ /// GetTargetBasicBlockAlign - Get the target alignment for basic blocks.
+ unsigned GetTargetBasicBlockAlign() const override;
+ /// GetTargetLabelAlign - Get optional alignment for TargetOpcode
+ /// labels E.g., EH_LABEL.
+ /// TODO(sehr,robertm): remove this if the labeled block has address taken.
+ unsigned GetTargetLabelAlign(const MachineInstr *MI) const override;
+ // @LOCALMOD-END
private:
// Helpers for EmitStartOfAsmFile() and EmitEndOfAsmFile()
« no previous file with comments | « lib/Target/ARM/ARM.h ('k') | lib/Target/ARM/ARMAsmPrinter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698