summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-05-26 01:22:57 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-05-26 01:22:57 +0000
commit895771aa4b784e1ba3bce2b97ae38a86b8f90c8e (patch)
tree6864775829063864473ab0caf1f43ccd7efed1f2 /clang/lib/CodeGen/CodeGenModule.h
parentb7e69b06b52d84c22cbe414bbb3593445303507e (diff)
downloadbcm5719-llvm-895771aa4b784e1ba3bce2b97ae38a86b8f90c8e.tar.gz
bcm5719-llvm-895771aa4b784e1ba3bce2b97ae38a86b8f90c8e.zip
Handle the edge case of a weak function with incomplete type correctly.
Found by code inspection; I haven't seen this in real-world code. llvm-svn: 72408
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 5c780e755b2..4d50e8946bd 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -397,12 +397,13 @@ private:
/// SetFunctionDefinitionAttributes - Set attributes for a global definition.
void SetFunctionDefinitionAttributes(const FunctionDecl *D,
- llvm::GlobalValue *GV);
+ llvm::GlobalValue *GV);
/// SetFunctionAttributes - Set function attributes for a function
/// declaration.
void SetFunctionAttributes(const FunctionDecl *FD,
- llvm::Function *F);
+ llvm::Function *F,
+ bool IsIncompleteFunction);
/// EmitGlobal - Emit code for a singal global function or var decl. Forward
/// declarations are emitted lazily.
OpenPOWER on IntegriCloud