X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FELFCodeEmitter.h;h=2ec1f6e873d6310966791f432e4c0269895763bf;hb=894339e19fbb45a729008decd1d050ee518589a4;hp=d7f178d8bfb9392def5b8e4ce474148bbb72b4e1;hpb=6933d3eff8e47a64803ece18b5a78748a674dc43;p=oota-llvm.git diff --git a/lib/CodeGen/ELFCodeEmitter.h b/lib/CodeGen/ELFCodeEmitter.h index d7f178d8bfb..2ec1f6e873d 100644 --- a/lib/CodeGen/ELFCodeEmitter.h +++ b/lib/CodeGen/ELFCodeEmitter.h @@ -31,14 +31,14 @@ namespace llvm { /// Relocations - Record relocations needed by the current function std::vector Relocations; + /// JTRelocations - Record relocations needed by the relocation + /// section. + std::vector JTRelocations; + /// FnStartPtr - Function offset from the beginning of ELFSection 'ES' uintptr_t FnStartOff; - - /// JumpTableSectionIdx - Holds the index of the Jump Table Section - unsigned JumpTableSectionIdx; public: - explicit ELFCodeEmitter(ELFWriter &ew) : EW(ew), TM(EW.TM), - JumpTableSectionIdx(0) {} + explicit ELFCodeEmitter(ELFWriter &ew) : EW(ew), TM(EW.TM) {} /// addRelocation - Register new relocations for this function void addRelocation(const MachineRelocation &MR) { @@ -57,13 +57,13 @@ namespace llvm { bool finishFunction(MachineFunction &F); /// emitLabel - Emits a label - virtual void emitLabel(uint64_t LabelID) { + virtual void emitLabel(MCSymbol *Label) { assert("emitLabel not implemented"); } /// getLabelAddress - Return the address of the specified LabelID, /// only usable after the LabelID has been emitted. - virtual uintptr_t getLabelAddress(uint64_t Label) const { + virtual uintptr_t getLabelAddress(MCSymbol *Label) const { assert("getLabelAddress not implemented"); return 0; }