Subzero: Clean up function header emission.
1. Don't do anything in Cfg::emitTextHeader() in MINIMAL mode. (Reduces binary size by 1KB.) This actually broke a number of lit tests for the MINIMAL build, so "--assemble --disassemble" was changed to "--filetype=obj --disassemble". This allowed (or required) better precision in checking for data symbols.
1a. For the lit files touched, go ahead and remove "-verbose none" since that will forevermore by the default.
2. Don't emit the ".bundle_align_mode" directive. This is not
necessary when assembling with the right -triple argument.
BUG= none
R=jvoung@chromium.org, kschimpf@google.com
Review URL: https://codereview.chromium.org/955003002
diff --git a/src/IceELFObjectWriter.cpp b/src/IceELFObjectWriter.cpp
index b8f678e..ff68ba2 100644
--- a/src/IceELFObjectWriter.cpp
+++ b/src/IceELFObjectWriter.cpp
@@ -370,6 +370,8 @@
if (!Var->hasInitializer())
continue;
Elf64_Xword Align = Var->getAlignment();
+ const Elf64_Xword MinAlign = 1;
+ Align = std::max(Align, MinAlign);
Section->padToAlignment(Str, Align);
SizeT SymbolSize = Var->getNumBytes();
bool IsExternal = Var->isExternal() || Ctx.getFlags().getDisableInternal();