Add comments.

llvm-svn: 256850
This commit is contained in:
Rui Ueyama 2016-01-05 17:55:05 +00:00
parent 861a0ae349
commit ddec22d55d
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,10 @@ enum ELFKind {
ELF64BEKind
};
// This struct contains the global configuration for the linker.
// Most fields are direct mapping from the command line options
// and such fields have the same name as the corresponding options.
// Most fields are initialized by the driver.
struct Configuration {
SymbolBody *EntrySym = nullptr;
SymbolBody *MipsGpDisp = nullptr;
@ -76,6 +80,7 @@ struct Configuration {
unsigned Optimize = 0;
};
// The only instance of Configuration struct.
extern Configuration *Config;
} // namespace elf2