Skip to content

Commit 38abf33

Browse files
PrabhukGeorgeARM
authored andcommitted
[nfc][clang] Rename function (llvm#137874)
Rename function to meet the coding guidelines.
1 parent 6522122 commit 38abf33

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/lib/CodeGen/CodeGenModule.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2662,7 +2662,7 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
26622662
// Skip available_externally functions. They won't be codegen'ed in the
26632663
// current module anyway.
26642664
if (getContext().GetGVALinkageForFunction(FD) != GVA_AvailableExternally)
2665-
CreateFunctionTypeMetadataForIcall(FD, F);
2665+
createFunctionTypeMetadataForIcall(FD, F);
26662666
}
26672667
}
26682668

@@ -2869,7 +2869,7 @@ static void setLinkageForGV(llvm::GlobalValue *GV, const NamedDecl *ND) {
28692869
GV->setLinkage(llvm::GlobalValue::ExternalWeakLinkage);
28702870
}
28712871

2872-
void CodeGenModule::CreateFunctionTypeMetadataForIcall(const FunctionDecl *FD,
2872+
void CodeGenModule::createFunctionTypeMetadataForIcall(const FunctionDecl *FD,
28732873
llvm::Function *F) {
28742874
// Only if we are checking indirect calls.
28752875
if (!LangOpts.Sanitize.has(SanitizerKind::CFIICall))
@@ -3017,7 +3017,7 @@ void CodeGenModule::SetFunctionAttributes(GlobalDecl GD, llvm::Function *F,
30173017
// jump table.
30183018
if (!CodeGenOpts.SanitizeCfiCrossDso ||
30193019
!CodeGenOpts.SanitizeCfiCanonicalJumpTables)
3020-
CreateFunctionTypeMetadataForIcall(FD, F);
3020+
createFunctionTypeMetadataForIcall(FD, F);
30213021

30223022
if (LangOpts.Sanitize.has(SanitizerKind::KCFI))
30233023
setKCFIType(FD, F);

clang/lib/CodeGen/CodeGenModule.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ class CodeGenModule : public CodeGenTypeCache {
16331633
llvm::Metadata *CreateMetadataIdentifierGeneralized(QualType T);
16341634

16351635
/// Create and attach type metadata to the given function.
1636-
void CreateFunctionTypeMetadataForIcall(const FunctionDecl *FD,
1636+
void createFunctionTypeMetadataForIcall(const FunctionDecl *FD,
16371637
llvm::Function *F);
16381638

16391639
/// Set type metadata to the given function.

0 commit comments

Comments
 (0)