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

Side by Side Diff: src/IceTargetLoweringX86BaseImpl.h

Issue 1669443002: Subzero. Uses fixups to calculate addend to relocations. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. Created 4 years, 10 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
OLDNEW
1 //===- subzero/src/IceTargetLoweringX86BaseImpl.h - x86 lowering -*- C++ -*-==// 1 //===- subzero/src/IceTargetLoweringX86BaseImpl.h - x86 lowering -*- C++ -*-==//
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 7079 matching lines...) Expand 10 before | Expand all | Expand 10 after
7090 7090
7091 template <typename TraitsType> 7091 template <typename TraitsType>
7092 void TargetX86Base<TraitsType>::emit(const ConstantUndef *) const { 7092 void TargetX86Base<TraitsType>::emit(const ConstantUndef *) const {
7093 llvm::report_fatal_error("undef value encountered by emitter."); 7093 llvm::report_fatal_error("undef value encountered by emitter.");
7094 } 7094 }
7095 7095
7096 template <class Machine> 7096 template <class Machine>
7097 void TargetX86Base<Machine>::emit(const ConstantRelocatable *C) const { 7097 void TargetX86Base<Machine>::emit(const ConstantRelocatable *C) const {
7098 if (!BuildDefs::dump()) 7098 if (!BuildDefs::dump())
7099 return; 7099 return;
7100 assert(!Ctx->getFlags().getUseNonsfi()); 7100 assert(!Ctx->getFlags().getUseNonsfi() || C->getName() == GlobalOffsetTable);
7101 Ostream &Str = Ctx->getStrEmit(); 7101 Ostream &Str = Ctx->getStrEmit();
7102 Str << "$"; 7102 Str << "$";
7103 emitWithoutPrefix(C); 7103 emitWithoutPrefix(C);
7104 } 7104 }
7105 7105
7106 /// Randomize or pool an Immediate. 7106 /// Randomize or pool an Immediate.
7107 template <typename TraitsType> 7107 template <typename TraitsType>
7108 Operand * 7108 Operand *
7109 TargetX86Base<TraitsType>::randomizeOrPoolImmediate(Constant *Immediate, 7109 TargetX86Base<TraitsType>::randomizeOrPoolImmediate(Constant *Immediate,
7110 int32_t RegNum) { 7110 int32_t RegNum) {
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
7455 emitGlobal(*Var, SectionSuffix); 7455 emitGlobal(*Var, SectionSuffix);
7456 } 7456 }
7457 } 7457 }
7458 } break; 7458 } break;
7459 } 7459 }
7460 } 7460 }
7461 } // end of namespace X86NAMESPACE 7461 } // end of namespace X86NAMESPACE
7462 } // end of namespace Ice 7462 } // end of namespace Ice
7463 7463
7464 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H 7464 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASEIMPL_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698