Skip to content

Commit 45778ad

Browse files
committed
[nfc][clang] Rename function
Rename function to meet the coding guidelines. I am working on a similar function in a subsequent PR. Landing this as NFC first to isolate this change.
1 parent 1a6b041 commit 45778ad

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
@@ -2661,7 +2661,7 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
26612661
// Skip available_externally functions. They won't be codegen'ed in the
26622662
// current module anyway.
26632663
if (getContext().GetGVALinkageForFunction(FD) != GVA_AvailableExternally)
2664-
CreateFunctionTypeMetadataForIcall(FD, F);
2664+
createFunctionTypeMetadataForIcall(FD, F);
26652665
}
26662666
}
26672667

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

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

30213021
if (LangOpts.Sanitize.has(SanitizerKind::KCFI))
30223022
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)