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

Side by Side Diff: src/IceTargetLoweringX8632.cpp

Issue 862853003: Fix build warnings (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 11 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/IceTargetLowering.h ('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/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
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
OLDNEW
« no previous file with comments | « src/IceTargetLowering.h ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698