diff options
| author | Rui Ueyama <ruiu@google.com> | 2017-10-08 03:45:49 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2017-10-08 03:45:49 +0000 |
| commit | 0ae2c24c5d7ebf70a82abe38cae0d6eabb0df97f (patch) | |
| tree | ccf75da2f5ef3622e3c07ffd2d7d58d4e8e2d2cc /lld/ELF/LinkerScript.h | |
| parent | 656be311740744ad0a051b58dd080d1fe10aaf82 (diff) | |
| download | bcm5719-llvm-0ae2c24c5d7ebf70a82abe38cae0d6eabb0df97f.tar.gz bcm5719-llvm-0ae2c24c5d7ebf70a82abe38cae0d6eabb0df97f.zip | |
Use llvm::Optional instead of UINT_MAX to represent a null value.
llvm-svn: 315168
Diffstat (limited to 'lld/ELF/LinkerScript.h')
| -rw-r--r-- | lld/ELF/LinkerScript.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h index 3b56a8f0101..425cf33c806 100644 --- a/lld/ELF/LinkerScript.h +++ b/lld/ELF/LinkerScript.h @@ -166,11 +166,11 @@ struct BytesDataCommand : BaseCommand { struct PhdrsCommand { StringRef Name; - unsigned Type; - bool HasFilehdr; - bool HasPhdrs; - unsigned Flags; - Expr LMAExpr; + unsigned Type = llvm::ELF::PT_NULL; + bool HasFilehdr = false; + bool HasPhdrs = false; + llvm::Optional<unsigned> Flags; + Expr LMAExpr = nullptr; }; // ScriptConfiguration holds linker script parse results. |

