Skip to content

Commit e4e7813

Browse files
committed
Inline a trivial function. NFC.
llvm-svn: 326391
1 parent faaf2d2 commit e4e7813

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

clang/lib/CodeGen/CGCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ llvm::Function *CodeGenModule::codegenCXXStructor(const CXXMethodDecl *MD,
230230
setFunctionDLLStorageClass(GD, Fn);
231231

232232
CodeGenFunction(*this).GenerateCode(GD, Fn, FnInfo);
233-
setFunctionDefinitionAttributes(GD, Fn);
233+
setNonAliasAttributes(GD, Fn);
234234
SetLLVMFunctionAttributesForDefinition(MD, Fn);
235235
return Fn;
236236
}

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,11 +1080,6 @@ llvm::ConstantInt *CodeGenModule::CreateCrossDsoCfiTypeId(llvm::Metadata *MD) {
10801080
return llvm::ConstantInt::get(Int64Ty, llvm::MD5Hash(MDS->getString()));
10811081
}
10821082

1083-
void CodeGenModule::setFunctionDefinitionAttributes(GlobalDecl GD,
1084-
llvm::Function *F) {
1085-
setNonAliasAttributes(GD, F);
1086-
}
1087-
10881083
void CodeGenModule::SetLLVMFunctionAttributes(const Decl *D,
10891084
const CGFunctionInfo &Info,
10901085
llvm::Function *F) {
@@ -3593,7 +3588,7 @@ void CodeGenModule::EmitGlobalFunctionDefinition(GlobalDecl GD,
35933588

35943589
CodeGenFunction(*this).GenerateCode(D, Fn, FI);
35953590

3596-
setFunctionDefinitionAttributes(GD, Fn);
3591+
setNonAliasAttributes(GD, Fn);
35973592
SetLLVMFunctionAttributesForDefinition(D, Fn);
35983593

35993594
if (const ConstructorAttr *CA = D->getAttr<ConstructorAttr>())

clang/lib/CodeGen/CodeGenModule.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,9 +1182,6 @@ class CodeGenModule : public CodeGenTypeCache {
11821182
bool TryEmitDefinitionAsAlias(GlobalDecl Alias, GlobalDecl Target);
11831183
bool TryEmitBaseDestructorAsAlias(const CXXDestructorDecl *D);
11841184

1185-
/// Set attributes for a global definition.
1186-
void setFunctionDefinitionAttributes(GlobalDecl GD, llvm::Function *F);
1187-
11881185
llvm::GlobalValue *GetGlobalValue(StringRef Ref);
11891186

11901187
/// Set attributes which are common to any form of a global definition (alias,

0 commit comments

Comments
 (0)