Index: src/IceCfg.cpp |
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp |
index 6fe7eb05830b435bedb9cc7fd98caf2fc5b80eb3..d699ef50bf7a207eb17729070c99fc16286d36d4 100644 |
--- a/src/IceCfg.cpp |
+++ b/src/IceCfg.cpp |
@@ -314,6 +314,13 @@ void Cfg::emit() { |
Str << "\t.globl\t" << MangledName << "\n"; |
Str << "\t.type\t" << MangledName << ",@function\n"; |
} |
+ Str << "\t.p2align " << getTarget()->getBundleAlignLog2Bytes() << ",0x"; |
+ llvm::ArrayRef<uint8_t> Pad = getTarget()->getNonExecBundlePadding(); |
+ for (llvm::ArrayRef<uint8_t>::iterator I = Pad.begin(), E = Pad.end(); |
+ I != E; ++I) { |
+ Str.write_hex(*I); |
+ } |
+ Str << "\n"; |
for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; |
++I) { |
(*I)->emit(this); |