diff options
author | Robert Muth <robertm@chromium.org> | 2012-09-17 15:27:33 -0400 |
---|---|---|
committer | Robert Muth <robertm@chromium.org> | 2012-09-17 15:27:33 -0400 |
commit | 8d211d5b87f167bfa4ddedc81b039c94e192f3ca (patch) | |
tree | d0c983deb0720e0eac757e9a3ae7bdda52b2d35f /include/llvm/Value.h | |
parent | 0365986a33ef5d04ea505cf1d73299386f01fdf9 (diff) |
Add a pass to llvm to rewrite the bitcode in an
arch specific way to mimic the native calling convention.
The goal is to make this good enough for ppapi interfaces.
Review URL: https://chromiumcodereview.appspot.com/10912128
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r-- | include/llvm/Value.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h index a82ac45c49..d7ccd4dccc 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -104,6 +104,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; |