Skip to content

Commit f49192a

Browse files
rename functions to camelBack scheme
1 parent a1fc006 commit f49192a

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

llvm/include/llvm/IR/AutoUpgrade.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ namespace llvm {
104104
/// - guarded-control-stack
105105
/// - sign-return-address
106106
/// - sign-return-address-with-bkey
107-
void CopyModuleAttrToFunctions(Module &M);
107+
void copyModuleAttrToFunctions(Module &M);
108108

109109
/// Check whether a string looks like an old loop attachment tag.
110110
inline bool mayBeOldLoopAttachmentTag(StringRef Name) {

llvm/lib/AsmParser/LLParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ bool LLParser::validateEndOfModule(bool UpgradeDebugInfo) {
440440
UpgradeModuleFlags(*M);
441441
UpgradeNVVMAnnotations(*M);
442442
UpgradeSectionAttributes(*M);
443-
CopyModuleAttrToFunctions(*M);
443+
copyModuleAttrToFunctions(*M);
444444

445445
if (!Slots)
446446
return false;

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7141,7 +7141,7 @@ Error BitcodeReader::materializeModule() {
71417141

71427142
UpgradeARCRuntime(*TheModule);
71437143

7144-
CopyModuleAttrToFunctions(*TheModule);
7144+
copyModuleAttrToFunctions(*TheModule);
71457145

71467146
return Error::success();
71477147
}

llvm/lib/IR/AutoUpgrade.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5976,7 +5976,7 @@ void llvm::UpgradeFunctionAttributes(Function &F) {
59765976
}
59775977

59785978
// Check if the function attribute is not present and set it.
5979-
static void SetFunctionAttrIfNotSet(Function &F, StringRef FnAttrName,
5979+
static void setFunctionAttrIfNotSet(Function &F, StringRef FnAttrName,
59805980
StringRef Value) {
59815981
if (!F.hasFnAttribute(FnAttrName))
59825982
F.addFnAttr(FnAttrName, Value);
@@ -6000,7 +6000,7 @@ static void ConvertFunctionAttr(Function &F, bool Set, StringRef FnAttrName) {
60006000
}
60016001
}
60026002

6003-
void llvm::CopyModuleAttrToFunctions(Module &M) {
6003+
void llvm::copyModuleAttrToFunctions(Module &M) {
60046004
Triple T(M.getTargetTriple());
60056005
if (!T.isThumb() && !T.isARM() && !T.isAArch64())
60066006
return;
@@ -6060,8 +6060,8 @@ void llvm::CopyModuleAttrToFunctions(Module &M) {
60606060
continue;
60616061

60626062
if (SRA) {
6063-
SetFunctionAttrIfNotSet(F, "sign-return-address", SignTypeValue);
6064-
SetFunctionAttrIfNotSet(F, "sign-return-address-key", SignKeyValue);
6063+
setFunctionAttrIfNotSet(F, "sign-return-address", SignTypeValue);
6064+
setFunctionAttrIfNotSet(F, "sign-return-address-key", SignKeyValue);
60656065
} else {
60666066
if (auto A = F.getFnAttribute("sign-return-address");
60676067
A.isValid() && "none" == A.getValueAsString()) {

llvm/lib/Linker/IRMover.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ Error IRLinker::run() {
15151515
// Convert module level attributes to function level attributes because
15161516
// after merging modules the attributes might change and would have different
15171517
// effect on the functions as the original module would have.
1518-
CopyModuleAttrToFunctions(*SrcM);
1518+
copyModuleAttrToFunctions(*SrcM);
15191519

15201520
std::reverse(Worklist.begin(), Worklist.end());
15211521
while (!Worklist.empty()) {
@@ -1686,7 +1686,7 @@ IRMover::IRMover(Module &M) : Composite(M) {
16861686
// Convert module level attributes to function level attributes because
16871687
// after merging modules the attributes might change and would have different
16881688
// effect on the functions as the original module would have.
1689-
CopyModuleAttrToFunctions(M);
1689+
copyModuleAttrToFunctions(M);
16901690
}
16911691

16921692
Error IRMover::move(std::unique_ptr<Module> Src,

0 commit comments

Comments
 (0)