diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-10-26 20:41:06 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-10-26 20:41:06 +0000 |
commit | a411d2f1ed4598a7a96a7befe07a9d9ee1a6efde (patch) | |
tree | b829ea5b2d3a94918477cca8a1362e1760e8d97b /lib/CodeGen/CodeGenModule.h | |
parent | 29e627ad9679bd3aa274cbe464127fdaba6241ca (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143049 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 8e38a89990..dbc6a87bd1 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/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 |