aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Value.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r--include/llvm/Value.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index 0142e515b4..7adf54209c 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -105,6 +105,12 @@ public:
///
Type *getType() const { return VTy; }
+ // @LOCALMOD-START
+ // Currently only used for function type update during
+ // the NaCl calling convention rewrite pass
+ void setType(Type* t) { VTy = t; }
+ // @LOCALMOD-END
+
/// All values hold a context through their type.
LLVMContext &getContext() const;