| OLD | NEW |
| 1 //===- subzero/src/IceGlobalInits.cpp - Global declarations ---------------===// | 1 //===- subzero/src/IceGlobalInits.cpp - Global declarations ---------------===// |
| 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 /// \file | 10 /// \file |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 void VariableDeclaration::RelocInitializer::dumpType(Ostream &Stream) const { | 223 void VariableDeclaration::RelocInitializer::dumpType(Ostream &Stream) const { |
| 224 if (!Ice::BuildDefs::dump()) | 224 if (!Ice::BuildDefs::dump()) |
| 225 return; | 225 return; |
| 226 Stream << Ice::IceType_i32; | 226 Stream << Ice::IceType_i32; |
| 227 } | 227 } |
| 228 | 228 |
| 229 void VariableDeclaration::RelocInitializer::dump(GlobalContext *Ctx, | 229 void VariableDeclaration::RelocInitializer::dump(GlobalContext *Ctx, |
| 230 Ostream &Stream) const { | 230 Ostream &Stream) const { |
| 231 if (!Ice::BuildDefs::dump()) | 231 if (!Ice::BuildDefs::dump()) |
| 232 return; | 232 return; |
| 233 const RelocOffsetT Offset = getOffset(); |
| 233 if (Offset != 0) { | 234 if (Offset != 0) { |
| 234 dumpType(Stream); | 235 dumpType(Stream); |
| 235 Stream << " add ("; | 236 Stream << " add ("; |
| 236 } | 237 } |
| 237 dumpType(Stream); | 238 dumpType(Stream); |
| 238 Stream << " ptrtoint ("; | 239 Stream << " ptrtoint ("; |
| 239 Declaration->dumpType(Stream); | 240 Declaration->dumpType(Stream); |
| 240 Stream << "* @"; | 241 Stream << "* @"; |
| 241 if (Ctx) | 242 if (Ctx) |
| 242 Stream << Ctx->mangleName(Declaration->getName()); | 243 Stream << Ctx->mangleName(Declaration->getName()); |
| 243 else | 244 else |
| 244 Stream << Declaration->getName(); | 245 Stream << Declaration->getName(); |
| 245 Stream << " to "; | 246 Stream << " to "; |
| 246 dumpType(Stream); | 247 dumpType(Stream); |
| 247 Stream << ")"; | 248 Stream << ")"; |
| 248 if (Offset != 0) { | 249 if (Offset != 0) { |
| 249 Stream << ", "; | 250 Stream << ", "; |
| 250 dumpType(Stream); | 251 dumpType(Stream); |
| 251 Stream << " " << Offset << ")"; | 252 Stream << " " << Offset << ")"; |
| 252 } | 253 } |
| 253 } | 254 } |
| 254 | 255 |
| 255 } // end of namespace Ice | 256 } // end of namespace Ice |
| OLD | NEW |