Now that we are trying to use the linker script representation as the canonycal one, there are a few loops looking for just OutputSectionCommands. Create a vector with just the OutputSectionCommands once that is stable to simplify the rest of the code. llvm-svn: 304181
24 lines
579 B
C++
24 lines
579 B
C++
//===- MapFile.h ------------------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Linker
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLD_ELF_MAPFILE_H
|
|
#define LLD_ELF_MAPFILE_H
|
|
|
|
#include <llvm/ADT/ArrayRef.h>
|
|
|
|
namespace lld {
|
|
namespace elf {
|
|
struct OutputSectionCommand;
|
|
template <class ELFT>
|
|
void writeMapFile(llvm::ArrayRef<OutputSectionCommand *> Script);
|
|
}
|
|
}
|
|
|
|
#endif
|