summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-11-01 05:42:23 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-11-01 05:42:23 +0000
commitb9bd6fb3976684fdfc39dd77b15d231aa4fd352d (patch)
treedb77d390031cdc55931e45610c3c2989ff9926ed /clang/lib/CodeGen/CodeGenModule.h
parenta0852d2be35e058e6329b3783cfdd50cd32f1740 (diff)
downloadbcm5719-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.h7
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);
OpenPOWER on IntegriCloud