diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-02 06:27:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-02 06:27:33 +0000 |
commit | 58c3f9ec11cbe852a518bf2f83af46f938b7b852 (patch) | |
tree | 8a83e3f528311dca7d67671fc226e211e54f7c42 /CodeGen/CodeGenModule.h | |
parent | 028380e5a61725c996a62554495d5c91d6eba415 (diff) |
implement codegen for functions whose function body type don't match
their prototype.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.h')
-rw-r--r-- | CodeGen/CodeGenModule.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h index c4867c0bfa..dd4c006a12 100644 --- a/CodeGen/CodeGenModule.h +++ b/CodeGen/CodeGenModule.h @@ -68,6 +68,15 @@ public: llvm::Constant *GetAddrOfGlobalDecl(const ValueDecl *D); + void ChangeGlobalDeclMap(const Decl *Decl, llvm::Constant *NewVal) { + GlobalDeclMap[Decl] = NewVal; + } + + /// ReplaceMapValuesWith - This is a really slow and bad function that + /// searches for any entries in GlobalDeclMap that point to OldVal, changing + /// them to point to NewVal. This is badbadbad, FIXME! + void ReplaceMapValuesWith(llvm::Constant *OldVal, llvm::Constant *NewVal); + /// getBuiltinLibFunction - Given a builtin id for a function like /// "__builtin_fabsf", return a Function* for "fabsf". /// |