blob: 1a7d84484e00e54cd43c32746d739a7caacfe828 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
//===- lib/ReaderWriter/ELF/WriterOptionsELF.cpp ----------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "lld/ReaderWriter/WriterELF.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ELF.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/system_error.h"
namespace lld {
StringRef WriterOptionsELF::entryPoint() const {
if (_type == llvm::ELF::ET_EXEC)
return "start";
return StringRef();
}
} // namespace lld
|