diff options
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
| -rw-r--r-- | lld/ELF/LinkerScript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 9e39a5de32e..e5076be283d 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -862,12 +862,12 @@ bool LinkerScript::ignoreInterpSection() { return true; } -uint32_t LinkerScript::getFiller(StringRef Name) { +Optional<uint32_t> LinkerScript::getFiller(StringRef Name) { for (BaseCommand *Base : Opt.Commands) if (auto *Cmd = dyn_cast<OutputSectionCommand>(Base)) if (Cmd->Name == Name) return Cmd->Filler; - return 0; + return None; } static void writeInt(uint8_t *Buf, uint64_t Data, uint64_t Size) { |

