Skip to content

Commit

Permalink
[llvm] Remove unused headers in LLVMDemangle
Browse files Browse the repository at this point in the history
As an hint to the impact of the cleanup, running

clang++ -E  -Iinclude -I../llvm/include ../llvm/lib/Demangle/*.cpp -std=c++14 -fno-rtti -fno-exceptions | wc -l

before: 208053 lines
after:  203965 lines
  • Loading branch information
serge-sans-paille committed Jan 21, 2022
1 parent d03c5bc commit a2f6921
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions llvm/include/llvm/Demangle/MicrosoftDemangle.h
Expand Up @@ -9,10 +9,8 @@
#ifndef LLVM_DEMANGLE_MICROSOFTDEMANGLE_H
#define LLVM_DEMANGLE_MICROSOFTDEMANGLE_H

#include "llvm/Demangle/DemangleConfig.h"
#include "llvm/Demangle/MicrosoftDemangleNodes.h"
#include "llvm/Demangle/StringView.h"
#include "llvm/Demangle/Utility.h"

#include <utility>

Expand Down
1 change: 0 additions & 1 deletion llvm/include/llvm/Demangle/MicrosoftDemangleNodes.h
Expand Up @@ -13,7 +13,6 @@
#ifndef LLVM_DEMANGLE_MICROSOFTDEMANGLENODES_H
#define LLVM_DEMANGLE_MICROSOFTDEMANGLENODES_H

#include "llvm/Demangle/DemangleConfig.h"
#include "llvm/Demangle/StringView.h"
#include <array>
#include <cstdint>
Expand Down
2 changes: 0 additions & 2 deletions llvm/lib/Demangle/ItaniumDemangle.cpp
Expand Up @@ -19,9 +19,7 @@
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <utility>
#include <vector>

using namespace llvm;
using namespace llvm::itanium_demangle;
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/Demangle/MicrosoftDemangleNodes.cpp
Expand Up @@ -11,7 +11,6 @@
//===----------------------------------------------------------------------===//

#include "llvm/Demangle/MicrosoftDemangleNodes.h"
#include "llvm/Demangle/DemangleConfig.h"
#include "llvm/Demangle/Utility.h"
#include <cctype>
#include <string>
Expand Down

0 comments on commit a2f6921

Please sign in to comment.