OLD | NEW |
1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===// | 1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===// |
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 TargetLoweringX8632 class, which | 10 // This file implements the TargetLoweringX8632 class, which |
(...skipping 4692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4703 Str << Reloc->getDeclaration()->mangleName(Ctx); | 4703 Str << Reloc->getDeclaration()->mangleName(Ctx); |
4704 if (RelocOffsetT Offset = Reloc->getOffset()) { | 4704 if (RelocOffsetT Offset = Reloc->getOffset()) { |
4705 if (Offset >= 0 || (Offset == INT32_MIN)) | 4705 if (Offset >= 0 || (Offset == INT32_MIN)) |
4706 Str << " + " << Offset; | 4706 Str << " + " << Offset; |
4707 else | 4707 else |
4708 Str << " - " << -Offset; | 4708 Str << " - " << -Offset; |
4709 } | 4709 } |
4710 Str << "\n"; | 4710 Str << "\n"; |
4711 break; | 4711 break; |
4712 } | 4712 } |
4713 default: { | |
4714 std::string Buffer; | |
4715 llvm::raw_string_ostream StrBuf(Buffer); | |
4716 StrBuf << "Unable to lower initializer: "; | |
4717 Init->dump(StrBuf); | |
4718 llvm::report_fatal_error(StrBuf.str()); | |
4719 break; | |
4720 } | |
4721 } | 4713 } |
4722 } | 4714 } |
4723 } else if (IsConstant || IsExternal) | 4715 } else if (IsConstant || IsExternal) |
4724 Str << "\t.zero\t" << Size << "\n"; | 4716 Str << "\t.zero\t" << Size << "\n"; |
4725 // Size is part of .comm. | 4717 // Size is part of .comm. |
4726 | 4718 |
4727 if (IsConstant || HasNonzeroInitializer || IsExternal) | 4719 if (IsConstant || HasNonzeroInitializer || IsExternal) |
4728 Str << "\t.size\t" << MangledName << ", " << Size << "\n"; | 4720 Str << "\t.size\t" << MangledName << ", " << Size << "\n"; |
4729 // Size is part of .comm. | 4721 // Size is part of .comm. |
4730 } | 4722 } |
4731 | 4723 |
4732 } // end of namespace Ice | 4724 } // end of namespace Ice |
OLD | NEW |