projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efb4bf0
)
add a helper method
author
Chris Lattner
<sabre@nondot.org>
Mon, 11 Jul 2005 04:49:33 +0000
(
04:49
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 11 Jul 2005 04:49:33 +0000
(
04:49
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22373
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineConstantPool.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineConstantPool.h
b/include/llvm/CodeGen/MachineConstantPool.h
index 0e6c642e8e50626db153128c1ad6b093d4055231..47148e8dd1118e3698d50fff8d7d68c96c3d1263 100644
(file)
--- a/
include/llvm/CodeGen/MachineConstantPool.h
+++ b/
include/llvm/CodeGen/MachineConstantPool.h
@@
-46,6
+46,10
@@
public:
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; }
/// print - Used by the MachineFunction printer to print information about