aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-09 23:53:08 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-09 23:53:08 +0000
commit42745815fa4e90bfb07e581d2e5152b2c2db08ff (patch)
treeef7baf6b3c967280a8bfab6bc08ce17c8ed77c7e /lib/CodeGen/CodeGenModule.h
parent1a873ae65f8814eae6c9b8786f164ce70c645a21 (diff)
Backout r66408, we don't want handling of globals to rely on the
module symbol table. The root problem inspiring this was fixed in r66316 (and again in r66506). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h29
1 files changed, 13 insertions, 16 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index 039579ffc5..c3a84af0c5 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/lib/CodeGen/CodeGenModule.h
@@ -312,17 +312,14 @@ private:
void EmitGlobalDefinition(const ValueDecl *D);
- /// EmitForwardFunctionDefinition - Create a new function for the given decl
- /// and set attributes as appropriate if ReplaceExisting is true, or if the
- /// same named declaration doesn't already exist in the module table,
- /// otherwise return the existing function from the module table.
+ /// EmitForwardFunctionDefinition - Create a new function for the
+ /// given decl and set attributes as appropriate.
///
- /// \arg Ty - If non-null the LLVM function type to use for the decl; it is
- /// the callers responsibility to make sure this is compatible with the
- /// correct type.
+ /// \arg Ty - If non-null the LLVM function type to use for the
+ /// decl; it is the callers responsibility to make sure this is
+ /// compatible with the correct type.
llvm::GlobalValue *EmitForwardFunctionDefinition(const FunctionDecl *D,
- const llvm::Type *Ty,
- bool ReplaceExisting=false);
+ const llvm::Type *Ty);
void EmitGlobalFunctionDefinition(const FunctionDecl *D);
void EmitGlobalVarDefinition(const VarDecl *D);
@@ -340,19 +337,19 @@ private:
void EmitAliases(void);
void EmitAnnotations(void);
- /// EmitDeferred - Emit any needed decls for which code generation was
- /// deferred.
+ /// EmitDeferred - Emit any needed decls for which code generation
+ /// was deferred.
void EmitDeferred(void);
- /// EmitLLVMUsed - Emit the llvm.used metadata used to force references to
- /// global which may otherwise be optimized out.
+ /// EmitLLVMUsed - Emit the llvm.used metadata used to force
+ /// references to global which may otherwise be optimized out.
void EmitLLVMUsed(void);
void BindRuntimeGlobals();
- /// MayDeferGeneration - Determine if the given decl can be emitted lazily;
- /// this is only relevant for definitions. The given decl must be either a
- /// function or var decl.
+ /// MayDeferGeneration - Determine if the given decl can be emitted
+ /// lazily; this is only relevant for definitions. The given decl
+ /// must be either a function or var decl.
bool MayDeferGeneration(const ValueDecl *D);
};
} // end namespace CodeGen