[PATCH] D86629: [AVR][clang] Pass the address of the data section to the linker for ATmega328
    Dylan McKay via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed Oct 28 09:42:41 PDT 2020
    
    
  
dylanmckay added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/AVR.cpp:40
 
+llvm::Optional<unsigned> GetMcuSectionAddressData(StringRef MCU) {
+  return llvm::StringSwitch<llvm::Optional<unsigned>>(MCU)
----------------
benshi001 wrote:
> aykevl wrote:
> > I don't think the LLVM coding style says something about this, but coming from Go I'm more used to capitalized abbreviations (`MCU`, `GetMCUSectionAddressData`).
> > 
> > However, this is just a superficial thing, feel free to ignore.
> I prefer to "Mcu"
I will change, thanks for the suggestions. FWIW, Rust prefers the `Mcu` variant IIRC which is where I adapted this pattern
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86629/new/
https://reviews.llvm.org/D86629
    
    
More information about the cfe-commits
mailing list