From 41af8182d80e26c5c1f302b89c8de0007ea7df1d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 2 Dec 2007 06:27:33 +0000 Subject: implement codegen for functions whose function body type don't match their prototype. llvm-svn: 44506 --- clang/CodeGen/CodeGenModule.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'clang/CodeGen/CodeGenModule.h') 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". /// -- cgit v1.2.3