2015-08-14 22:12:54 +08:00
|
|
|
//===- Config.h -------------------------------------------------*- C++ -*-===//
|
2015-07-25 05:03:07 +08:00
|
|
|
//
|
|
|
|
// The LLVM Linker
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLD_ELF_CONFIG_H
|
|
|
|
#define LLD_ELF_CONFIG_H
|
|
|
|
|
|
|
|
#include "llvm/ADT/StringRef.h"
|
|
|
|
|
|
|
|
namespace lld {
|
|
|
|
namespace elf2 {
|
|
|
|
|
|
|
|
struct Configuration {
|
|
|
|
llvm::StringRef OutputFile;
|
2015-09-12 02:49:42 +08:00
|
|
|
llvm::StringRef DynamicLinker;
|
2015-09-12 05:18:56 +08:00
|
|
|
std::string RPath;
|
2015-09-12 06:42:45 +08:00
|
|
|
bool Shared = false;
|
2015-09-17 04:45:57 +08:00
|
|
|
bool DiscardAll = false;
|
2015-09-21 05:58:12 +08:00
|
|
|
bool DiscardLocals = false;
|
2015-09-23 07:38:23 +08:00
|
|
|
bool ExportDynamic = false;
|
2015-07-25 05:03:07 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
extern Configuration *Config;
|
|
|
|
|
|
|
|
} // namespace elf2
|
|
|
|
} // namespace lld
|
|
|
|
|
|
|
|
#endif
|