summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCAtom.h
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2013-08-21 07:27:40 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2013-08-21 07:27:40 +0000
commit73260db46b9daf8d0b60298d9d50fb0a3af8f8af (patch)
tree6a261a8ad88f3f275f8aa57032f02c722ac3bf42 /include/llvm/MC/MCAtom.h
parentd7d43dc435f24e611d9d8090f6ca80a4998efd31 (diff)
downloadllvm-73260db46b9daf8d0b60298d9d50fb0a3af8f8af.tar.gz
llvm-73260db46b9daf8d0b60298d9d50fb0a3af8f8af.tar.bz2
llvm-73260db46b9daf8d0b60298d9d50fb0a3af8f8af.tar.xz
MC CFG: Add a getter for MCDataAtom's data array.
While there, switch to new-style documentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAtom.h')
-rw-r--r--include/llvm/MC/MCAtom.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/MC/MCAtom.h b/include/llvm/MC/MCAtom.h
index 6a937986fd..ad8291fe7b 100644
--- a/include/llvm/MC/MCAtom.h
+++ b/include/llvm/MC/MCAtom.h
@@ -16,6 +16,7 @@
#ifndef LLVM_MC_MCATOM_H
#define LLVM_MC_MCATOM_H
+#include "llvm/ADT/ArrayRef.h"
#include "llvm/MC/MCInst.h"
#include "llvm/Support/DataTypes.h"
#include <vector>
@@ -28,7 +29,7 @@ class MCAtom;
class MCTextAtom;
class MCDataAtom;
-/// MCAtom - Represents a contiguous range of either instructions (a TextAtom)
+/// \brief Represents a contiguous range of either instructions (a TextAtom)
/// or data (a DataAtom). Address ranges are expressed as _closed_ intervals.
class MCAtom {
public:
@@ -172,6 +173,9 @@ public:
/// Append a data entry, expanding the atom if necessary.
void addData(const MCData &D);
+ /// Get a reference to the data in this atom.
+ ArrayRef<MCData> getData() const { return Data; }
+
/// \name Atom type specific split/truncate logic.
/// @{
MCDataAtom *split(uint64_t SplitPt) LLVM_OVERRIDE;