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

Side by Side Diff: src/IceTranslator.cpp

Issue 686913005: Turn off dump/emit routines when building minimal subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 //===- subzero/src/IceTranslator.cpp - ICE to machine code ------*- C++ -*-===// 1 //===- subzero/src/IceTranslator.cpp - ICE to machine code ------*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file defines the general driver class for translating ICE to 10 // This file defines the general driver class for translating ICE to
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 void Translator::emitConstants() { 99 void Translator::emitConstants() {
100 if (!Ctx->getFlags().DisableTranslation && Func) 100 if (!Ctx->getFlags().DisableTranslation && Func)
101 Func->getTarget()->emitConstants(); 101 Func->getTarget()->emitConstants();
102 } 102 }
103 103
104 void Translator::lowerGlobals( 104 void Translator::lowerGlobals(
105 const VariableDeclarationListType &VariableDeclarations) { 105 const VariableDeclarationListType &VariableDeclarations) {
106 llvm::OwningPtr<TargetGlobalInitLowering> GlobalLowering( 106 llvm::OwningPtr<TargetGlobalInitLowering> GlobalLowering(
107 TargetGlobalInitLowering::createLowering(Ctx->getTargetArch(), Ctx)); 107 TargetGlobalInitLowering::createLowering(Ctx->getTargetArch(), Ctx));
108 bool DisableTranslation = Ctx->getFlags().DisableTranslation; 108 bool DisableTranslation = Ctx->getFlags().DisableTranslation;
109 bool DumpGlobalVariables = 109 const bool DumpGlobalVariables =
110 Ctx->isVerbose() && Ctx->getFlags().VerboseFocusOn.empty(); 110 ALLOW_DUMP && Ctx->isVerbose() && Ctx->getFlags().VerboseFocusOn.empty();
111 Ostream &Stream = Ctx->getStrDump(); 111 Ostream &Stream = Ctx->getStrDump();
112 const IceString &TranslateOnly = Ctx->getFlags().TranslateOnly; 112 const IceString &TranslateOnly = Ctx->getFlags().TranslateOnly;
113 for (const Ice::VariableDeclaration *Global : VariableDeclarations) { 113 for (const Ice::VariableDeclaration *Global : VariableDeclarations) {
114 if (DumpGlobalVariables) 114 if (DumpGlobalVariables)
115 Global->dump(getContext(), Stream); 115 Global->dump(getContext(), Stream);
116 if (!DisableTranslation && 116 if (!DisableTranslation &&
117 matchSymbolName(Global->getName(), TranslateOnly)) 117 matchSymbolName(Global->getName(), TranslateOnly))
118 GlobalLowering->lower(*Global); 118 GlobalLowering->lower(*Global);
119 } 119 }
120 GlobalLowering.reset(); 120 GlobalLowering.reset();
121 } 121 }
OLDNEW
« no previous file with comments | « src/IceTimerTree.cpp ('k') | src/IceTypes.cpp » ('j') | tests_lit/reader_tests/alloca.ll » ('J')

Powered by Google App Engine
This is Rietveld 408576698