| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |