1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00

MC CFG: Add a getter for MCDataAtom's data array.

While there, switch to new-style documentation.

llvm-svn: 188871
This commit is contained in:
Ahmed Bougacha 2013-08-21 07:27:40 +00:00
parent 198e3adaf6
commit 859ceb2709

View File

@ -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;