Skip to content
Snippets Groups Projects
Commit 3bdfd6fc authored by Chris Lattner's avatar Chris Lattner
Browse files

add a helper method

llvm-svn: 22373
parent c3e38f79
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,10 @@ public: ...@@ -46,6 +46,10 @@ public:
return Constants.size()-1; return Constants.size()-1;
} }
/// isEmpty - Return true if this constant pool contains no constants.
///
bool isEmpty() const { return Constants.empty(); }
const std::vector<Constant*> &getConstants() const { return Constants; } const std::vector<Constant*> &getConstants() const { return Constants; }
/// print - Used by the MachineFunction printer to print information about /// print - Used by the MachineFunction printer to print information about
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment