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:
3bc3d3c
)
add missing method, PR6284
author
Chris Lattner
<sabre@nondot.org>
Wed, 17 Feb 2010 18:39:56 +0000
(18:39 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 17 Feb 2010 18:39:56 +0000
(18:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96489
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/TargetFolder.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/TargetFolder.h
b/include/llvm/Support/TargetFolder.h
index 384c49396a865524e7f8aece051cb7916c812030..d34f35fe0d2be8cf37765a6b4297199b414de251 100644
(file)
--- a/
include/llvm/Support/TargetFolder.h
+++ b/
include/llvm/Support/TargetFolder.h
@@
-185,7
+185,9
@@
public:
return C; // avoid calling Fold
return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned));
}
-
+ Constant *CreatePointerCast(Constant *C, const Type *DestTy) const {
+ return ConstantExpr::getPointerCast(C, DestTy);
+ }
Constant *CreateBitCast(Constant *C, const Type *DestTy) const {
return CreateCast(Instruction::BitCast, C, DestTy);
}