X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FMC%2FMCAtom.h;h=682cf7cd76c686dfc14225923466dd7521c0b49d;hb=486a7ad94fc948a0f52c32c860cdb2b166741249;hp=6805c39756c2575e7bf640012b4e9170c8adc9bc;hpb=124e1821033a4b3220f552229652d9460ed90673;p=oota-llvm.git diff --git a/include/llvm/MC/MCAtom.h b/include/llvm/MC/MCAtom.h index 6805c39756c..682cf7cd76c 100644 --- a/include/llvm/MC/MCAtom.h +++ b/include/llvm/MC/MCAtom.h @@ -49,15 +49,8 @@ public: bool isTextAtom() { return Type == TextAtom; } bool isDataAtom() { return Type == DataAtom; } - void addInst(const MCInst &I, uint64_t Address) { - assert(Type == TextAtom && "Trying to add MCInst to a non-text atom!"); - Text.push_back(std::make_pair(Address, I)); - } - - void addData(const MCData &D) { - assert(Type == DataAtom && "Trying to add MCData to a non-data atom!"); - Data.push_back(D); - } + void addInst(const MCInst &I, uint64_t Address, unsigned Size); + void addData(const MCData &D); /// split - Splits the atom in two at a given address, which must align with /// and instruction boundary if this is a TextAtom. Returns the newly created