diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-11-01 05:42:23 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-11-01 05:42:23 +0000 |
commit | b9bd6fb3976684fdfc39dd77b15d231aa4fd352d (patch) | |
tree | db77d390031cdc55931e45610c3c2989ff9926ed /clang/lib/CodeGen/CodeGenModule.h | |
parent | a0852d2be35e058e6329b3783cfdd50cd32f1740 (diff) | |
download | bcm5719-llvm-b9bd6fb3976684fdfc39dd77b15d231aa4fd352d.tar.gz bcm5719-llvm-b9bd6fb3976684fdfc39dd77b15d231aa4fd352d.zip |
CodeGen: Virtual dtor thunks shouldn't have this marked as 'returned'
The ARM ABI virtual destructor thunks cannot be marked as 'returned'
because they return undef.
llvm-svn: 221042
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index a3bbada6109..c5ee57f8d68 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1088,10 +1088,10 @@ public: void addReplacement(StringRef Name, llvm::Constant *C); private: - llvm::Constant * GetOrCreateLLVMFunction(StringRef MangledName, llvm::Type *Ty, GlobalDecl D, bool ForVTable, bool DontDefer = false, + bool IsThunk = false, llvm::AttributeSet ExtraAttrs = llvm::AttributeSet()); llvm::Constant *GetOrCreateLLVMGlobal(StringRef MangledName, @@ -1101,9 +1101,8 @@ private: void setNonAliasAttributes(const Decl *D, llvm::GlobalObject *GO); /// Set function attributes for a function declaration. - void SetFunctionAttributes(GlobalDecl GD, - llvm::Function *F, - bool IsIncompleteFunction); + void SetFunctionAttributes(GlobalDecl GD, llvm::Function *F, + bool IsIncompleteFunction, bool IsThunk); void EmitGlobalDefinition(GlobalDecl D, llvm::GlobalValue *GV = nullptr); |