mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-03 19:32:35 +00:00
b91905a263
Added support for /map and /map:[filepath]. The output was derived from Microsoft's Link.exe output when using that same option. Note that /MAPINFO support was not added. The previous implementation of MapFile.cpp/.h was meant for /lldmap, and was renamed to LLDMapFile.cpp/.h MapFile.cpp/.h is now for /MAP However, a small fix was added to lldmap, replacing a std::sort with std::stable_sort to enforce reproducibility. Differential Revision: https://reviews.llvm.org/D70557
22 lines
599 B
C++
22 lines
599 B
C++
//===- LLDMapFile.h ---------------------------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLD_COFF_LLDMAPFILE_H
|
|
#define LLD_COFF_LLDMAPFILE_H
|
|
|
|
#include "llvm/ADT/ArrayRef.h"
|
|
|
|
namespace lld {
|
|
namespace coff {
|
|
class OutputSection;
|
|
void writeLLDMapFile(llvm::ArrayRef<OutputSection *> outputSections);
|
|
}
|
|
}
|
|
|
|
#endif
|