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 | 41af8182d80e26c5c1f302b89c8de0007ea7df1d (patch) | |
tree | e033f055edac4a55d58c67bf614dde04e0995fc8 /clang/CodeGen/CodeGenModule.h | |
parent | c5b3aab66bc3a08acc4c00aeeebc5799ad9e8e4f (diff) | |
download | bcm5719-llvm-41af8182d80e26c5c1f302b89c8de0007ea7df1d.tar.gz bcm5719-llvm-41af8182d80e26c5c1f302b89c8de0007ea7df1d.zip |
implement codegen for functions whose function body type don't match
their prototype.
llvm-svn: 44506
Diffstat (limited to 'clang/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/CodeGen/CodeGenModule.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/CodeGen/CodeGenModule.h b/clang/CodeGen/CodeGenModule.h index c4867c0bfaf..dd4c006a125 100644 --- a/clang/CodeGen/CodeGenModule.h +++ b/clang/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". /// |