[lld] r175992 - [ELF]Change name of runtime files, so that targets can change runtime files that they own
Shankar Easwaran
shankare at codeaurora.org
Sun Feb 24 06:54:02 PST 2013
Author: shankare
Date: Sun Feb 24 08:54:02 2013
New Revision: 175992
URL: http://llvm.org/viewvc/llvm-project?rev=175992&view=rev
Log:
[ELF]Change name of runtime files, so that targets can change runtime files that they own
Modified:
lld/trunk/lib/ReaderWriter/ELF/ExecutableAtoms.h
Modified: lld/trunk/lib/ReaderWriter/ELF/ExecutableAtoms.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ExecutableAtoms.h?rev=175992&r1=175991&r2=175992&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ExecutableAtoms.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ExecutableAtoms.h Sun Feb 24 08:54:02 2013
@@ -29,7 +29,8 @@ namespace elf {
template <class ELFT> class CRuntimeFile : public ELFFile<ELFT> {
public:
typedef llvm::object::Elf_Sym_Impl<ELFT> Elf_Sym;
- CRuntimeFile(const ELFTargetInfo &ti) : ELFFile<ELFT>(ti, "C runtime") {}
+ CRuntimeFile(const ELFTargetInfo &ti, StringRef name = "C runtime")
+ : ELFFile<ELFT>(ti, name) {}
/// \brief add a global absolute atom
void addAbsoluteAtom(StringRef symbolName) {
@@ -76,8 +77,8 @@ public:
}
// cannot add atoms to C Runtime file
- virtual void addAtom(const Atom&) {
- llvm_unreachable("cannot add atoms to C Runtime files");
+ virtual void addAtom(const Atom &) {
+ llvm_unreachable("cannot add atoms to Runtime files");
}
private:
More information about the llvm-commits
mailing list