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

Side by Side Diff: src/IceTranslator.cpp

Issue 667763002: Fix handling of relocation names, so that prefix mangling works. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « src/IceTargetLoweringX8632.cpp ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 void Translator::lowerGlobals( 82 void Translator::lowerGlobals(
83 const VariableDeclarationListType &VariableDeclarations) { 83 const VariableDeclarationListType &VariableDeclarations) {
84 llvm::OwningPtr<TargetGlobalInitLowering> GlobalLowering( 84 llvm::OwningPtr<TargetGlobalInitLowering> GlobalLowering(
85 TargetGlobalInitLowering::createLowering(Ctx->getTargetArch(), Ctx)); 85 TargetGlobalInitLowering::createLowering(Ctx->getTargetArch(), Ctx));
86 bool DisableTranslation = Ctx->getFlags().DisableTranslation; 86 bool DisableTranslation = Ctx->getFlags().DisableTranslation;
87 bool DumpGlobalVariables = Ctx->isVerbose(); 87 bool DumpGlobalVariables = Ctx->isVerbose();
88 Ostream &Stream = Ctx->getStrDump(); 88 Ostream &Stream = Ctx->getStrDump();
89 for (const Ice::VariableDeclaration *Global : VariableDeclarations) { 89 for (const Ice::VariableDeclaration *Global : VariableDeclarations) {
90 if (DumpGlobalVariables) 90 if (DumpGlobalVariables)
91 Global->dump(Stream); 91 Global->dump(getContext(), Stream);
92 if(!DisableTranslation) 92 if(!DisableTranslation)
93 GlobalLowering->lower(*Global); 93 GlobalLowering->lower(*Global);
94 } 94 }
95 GlobalLowering.reset(); 95 GlobalLowering.reset();
96 } 96 }
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX8632.cpp ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698