| OLD | NEW | 
|    1 //===- subzero/src/IceConverter.cpp - Converts LLVM to Ice  ---------------===// |    1 //===- subzero/src/IceConverter.cpp - Converts LLVM to Ice  ---------------===// | 
|    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 implements the LLVM to ICE converter. |   10 // This file implements the LLVM to ICE converter. | 
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  683 void LLVM2ICEGlobalsConverter::convertGlobalsToIce( |  683 void LLVM2ICEGlobalsConverter::convertGlobalsToIce( | 
|  684     Module *Mod, |  684     Module *Mod, | 
|  685     Ice::Translator::VariableDeclarationListType &VariableDeclarations) { |  685     Ice::Translator::VariableDeclarationListType &VariableDeclarations) { | 
|  686   for (Module::const_global_iterator I = Mod->global_begin(), |  686   for (Module::const_global_iterator I = Mod->global_begin(), | 
|  687                                      E = Mod->global_end(); |  687                                      E = Mod->global_end(); | 
|  688        I != E; ++I) { |  688        I != E; ++I) { | 
|  689  |  689  | 
|  690     const GlobalVariable *GV = I; |  690     const GlobalVariable *GV = I; | 
|  691  |  691  | 
|  692     Ice::GlobalDeclaration *Var = getConverter().getGlobalDeclaration(GV); |  692     Ice::GlobalDeclaration *Var = getConverter().getGlobalDeclaration(GV); | 
|  693     Ice::VariableDeclaration* VarDecl = cast<Ice::VariableDeclaration>(Var); |  693     Ice::VariableDeclaration *VarDecl = cast<Ice::VariableDeclaration>(Var); | 
|  694     VariableDeclarations.push_back(VarDecl); |  694     VariableDeclarations.push_back(VarDecl); | 
|  695  |  695  | 
|  696     if (!GV->hasInternalLinkage() && GV->hasInitializer()) { |  696     if (!GV->hasInternalLinkage() && GV->hasInitializer()) { | 
|  697       std::string Buffer; |  697       std::string Buffer; | 
|  698       raw_string_ostream StrBuf(Buffer); |  698       raw_string_ostream StrBuf(Buffer); | 
|  699       StrBuf << "Can't define external global declaration: " << GV->getName(); |  699       StrBuf << "Can't define external global declaration: " << GV->getName(); | 
|  700       report_fatal_error(StrBuf.str()); |  700       report_fatal_error(StrBuf.str()); | 
|  701     } |  701     } | 
|  702  |  702  | 
|  703     if (!GV->hasInitializer()) { |  703     if (!GV->hasInitializer()) { | 
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  887     LLVM2ICEFunctionConverter FunctionConverter(*this); |  887     LLVM2ICEFunctionConverter FunctionConverter(*this); | 
|  888  |  888  | 
|  889     Cfg *Fcn = FunctionConverter.convertFunction(&I); |  889     Cfg *Fcn = FunctionConverter.convertFunction(&I); | 
|  890     translateFcn(Fcn); |  890     translateFcn(Fcn); | 
|  891     if (ALLOW_DUMP && Ctx->getFlags().TimeEachFunction) |  891     if (ALLOW_DUMP && Ctx->getFlags().TimeEachFunction) | 
|  892       Ctx->popTimer(TimerID, StackID); |  892       Ctx->popTimer(TimerID, StackID); | 
|  893   } |  893   } | 
|  894 } |  894 } | 
|  895  |  895  | 
|  896 } // end of namespace Ice |  896 } // end of namespace Ice | 
| OLD | NEW |