aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-10-26 20:41:06 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-10-26 20:41:06 +0000
commitc594135b68e7c8264f4fa045684df9f029798fac (patch)
treee138eedf1d1a7a6ad279a93c84f9647938c74964 /clang/lib/CodeGen/CodeGenModule.h
parent69d28ed01344b3de2826f01096744193e303eff5 (diff)
downloadllvm-c594135b68e7c8264f4fa045684df9f029798fac.zip
llvm-c594135b68e7c8264f4fa045684df9f029798fac.tar.gz
llvm-c594135b68e7c8264f4fa045684df9f029798fac.tar.bz2
Fix pr9614 by not emitting an available_externally function when it calls
itself via an asm label. available_externally functions are supposed to correspond to an external function, and that is not the case in the examples in pr9614. llvm-svn: 143049
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 8e38a89..dbc6a87 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -324,6 +324,8 @@ class CodeGenModule : public CodeGenTypeCache {
void createOpenCLRuntime();
void createCUDARuntime();
+ bool isTriviallyRecursiveViaAsm(const FunctionDecl *F);
+ bool shouldEmitFunction(const FunctionDecl *F);
llvm::LLVMContext &VMContext;
/// @name Cache for Blocks Runtime Globals