[llvm] [llvm-objcopy] Add --change-section-address (PR #98664)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 02:14:27 PDT 2024


================
@@ -584,6 +584,69 @@ static Expected<int64_t> parseChangeSectionLMA(StringRef ArgValue,
   return *LMAValue;
 }
 
+static Expected<SectionPatternAddressUpdate>
+parseChangeSectionAddr(StringRef ArgValue, StringRef OptionName,
+                       MatchStyle SectionMatchStyle,
+                       function_ref<Error(Error)> ErrorCallback) {
+
+  SectionPatternAddressUpdate PatternUpdate;
+
+  size_t last_i = ArgValue.find_last_of("+-=");
----------------
jh7370 wrote:

Name doesn't conform to [coding standards](https://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly).

https://github.com/llvm/llvm-project/pull/98664


More information about the llvm-commits mailing list