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

Unified Diff: src/IceGlobalContext.cpp

Issue 1171563002: Subzero: Emit ARM build-attributes in the file scope (as header). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: use class final, fix for mips32 Created 5 years, 6 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
Index: src/IceGlobalContext.cpp
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp
index 87421bc610d6897417eab8ebd43f42f67eb70a44..8ed4d76836553125eed5f746a11baf0db522dc2a 100644
--- a/src/IceGlobalContext.cpp
+++ b/src/IceGlobalContext.cpp
@@ -400,6 +400,17 @@ void addAllIfNotNull(std::unique_ptr<VariableDeclarationList> src,
} // end of anonymous namespace
+void GlobalContext::emitFileHeader() {
+ TimerMarker T1(Ice::TimerStack::TT_emit, this);
+ if (getFlags().getOutFileType() == FT_Elf) {
+ getObjectWriter()->writeInitialELFHeader();
+ } else {
+ if (!ALLOW_DUMP)
+ llvm::report_fatal_error("emitFileHeader for non-ELF");
+ TargetHeaderLowering::createLowering(this)->lower();
+ }
+}
+
void GlobalContext::emitItems() {
const bool Threaded = !getFlags().isSequential();
// Pending is a vector containing the reassembled, ordered list of
« no previous file with comments | « src/IceGlobalContext.h ('k') | src/IceTargetLowering.h » ('j') | src/IceTargetLoweringMIPS32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698