summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-10-10 18:09:38 +0000
committerOwen Anderson <resistor@mac.com>2011-10-10 18:09:38 +0000
commit042aadd8ee1e532e7ef7b6c3d42bcc94e7a6f156 (patch)
tree964a4bae1905eead1a8e4643a4ba66c2e8243b69 /include
parent475fa2608ca3c9f754ec7979172f8ab0a3b138f0 (diff)
downloadllvm-042aadd8ee1e532e7ef7b6c3d42bcc94e7a6f156.tar.gz
llvm-042aadd8ee1e532e7ef7b6c3d42bcc94e7a6f156.tar.bz2
llvm-042aadd8ee1e532e7ef7b6c3d42bcc94e7a6f156.tar.xz
MCAtom extending methods need to extend the range of the atom as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141557 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/MC/MCAtom.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/llvm/MC/MCAtom.h b/include/llvm/MC/MCAtom.h
index 6805c39756..682cf7cd76 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