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

Side by Side Diff: src/IceFixups.cpp

Issue 1341423002: Reflow comments to use the full width. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix spelling and rebase Created 5 years, 3 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/IceELFStreamer.h ('k') | src/IceGlobalContext.h » ('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/IceFixups.cpp - Implementation of Assembler Fixups -----===// 1 //===- subzero/src/IceFixups.cpp - Implementation of Assembler Fixups -----===//
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 22 matching lines...) Expand all
33 std::string Buffer; 33 std::string Buffer;
34 llvm::raw_string_ostream Str(Buffer); 34 llvm::raw_string_ostream Str(Buffer);
35 const Constant *C = value_; 35 const Constant *C = value_;
36 assert(!isNullSymbol()); 36 assert(!isNullSymbol());
37 if (const auto CR = llvm::dyn_cast<ConstantRelocatable>(C)) { 37 if (const auto CR = llvm::dyn_cast<ConstantRelocatable>(C)) {
38 if (CR->getSuppressMangling()) 38 if (CR->getSuppressMangling())
39 Str << CR->getName(); 39 Str << CR->getName();
40 else 40 else
41 Str << Ctx->mangleName(CR->getName()); 41 Str << Ctx->mangleName(CR->getName());
42 } else { 42 } else {
43 // NOTE: currently only float/doubles are put into constant pools. 43 // NOTE: currently only float/doubles are put into constant pools. In the
44 // In the future we may put integers as well. 44 // future we may put integers as well.
45 assert(llvm::isa<ConstantFloat>(C) || llvm::isa<ConstantDouble>(C)); 45 assert(llvm::isa<ConstantFloat>(C) || llvm::isa<ConstantDouble>(C));
46 C->emitPoolLabel(Str); 46 C->emitPoolLabel(Str);
47 } 47 }
48 return Str.str(); 48 return Str.str();
49 } 49 }
50 50
51 void AssemblerFixup::emit(GlobalContext *Ctx, 51 void AssemblerFixup::emit(GlobalContext *Ctx,
52 RelocOffsetT OverrideOffset) const { 52 RelocOffsetT OverrideOffset) const {
53 if (!BuildDefs::dump()) 53 if (!BuildDefs::dump())
54 return; 54 return;
55 Ostream &Str = Ctx->getStrEmit(); 55 Ostream &Str = Ctx->getStrEmit();
56 if (isNullSymbol()) 56 if (isNullSymbol())
57 Str << "__Sz_AbsoluteZero"; 57 Str << "__Sz_AbsoluteZero";
58 else 58 else
59 Str << symbol(Ctx); 59 Str << symbol(Ctx);
60 RelocOffsetT Offset = OverrideOffset; 60 RelocOffsetT Offset = OverrideOffset;
61 if (Offset) 61 if (Offset)
62 Str << " + " << Offset; 62 Str << " + " << Offset;
63 } 63 }
64 64
65 } // end of namespace Ice 65 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceELFStreamer.h ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698