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:
d285139
)
add a helper method.
author
Chris Lattner
<sabre@nondot.org>
Tue, 19 Apr 2011 20:47:57 +0000
(20:47 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 19 Apr 2011 20:47:57 +0000
(20:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129806
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/IRBuilder.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/IRBuilder.h
b/include/llvm/Support/IRBuilder.h
index 8e6de4b177498461f899ee2d97a2dcb87fc44855..3878e793dbe00b4e05469fd9abdbd1bc7ae93e39 100644
(file)
--- a/
include/llvm/Support/IRBuilder.h
+++ b/
include/llvm/Support/IRBuilder.h
@@
-193,6
+193,10
@@
public:
ConstantInt *getInt64(uint64_t C) {
return ConstantInt::get(getInt64Ty(), C);
}
+
+ ConstantInt *getInt(const APInt &AI) {
+ return ConstantInt::get(Context, AI);
+ }
//===--------------------------------------------------------------------===//
// Type creation methods