Skip to content

Commit fe364e5

Browse files
committed
[NFC] Remove LinkAll*.h
These were added to prevent functions from being removed by WPO. But that doesn't make sense, correct WPO will not remove functions we actually use. I noticed these because compiling cc1_main.cpp was pulling in random LLVM pass headers. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D112971
1 parent 43390d3 commit fe364e5

File tree

15 files changed

+3
-429
lines changed

15 files changed

+3
-429
lines changed

clang/tools/driver/cc1_main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include "clang/FrontendTool/Utils.h"
2828
#include "llvm/ADT/Statistic.h"
2929
#include "llvm/Config/llvm-config.h"
30-
#include "llvm/LinkAllPasses.h"
3130
#include "llvm/MC/TargetRegistry.h"
3231
#include "llvm/Option/Arg.h"
3332
#include "llvm/Option/ArgList.h"

llvm/docs/WritingAnLLVMPass.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,11 +1308,6 @@ option. Registering instruction schedulers is similar except use the
13081308
``RegisterScheduler::FunctionPassCtor`` is significantly different from
13091309
``RegisterRegAlloc::FunctionPassCtor``.
13101310

1311-
To force the load/linking of your register allocator into the
1312-
:program:`llc`/:program:`lli` tools, add your creator function's global
1313-
declaration to ``Passes.h`` and add a "pseudo" call line to
1314-
``llvm/Codegen/LinkAllCodegenComponents.h``.
1315-
13161311
Creating new registries
13171312
-----------------------
13181313

llvm/include/llvm/CodeGen/LinkAllAsmWriterComponents.h

Lines changed: 0 additions & 37 deletions
This file was deleted.

llvm/include/llvm/CodeGen/LinkAllCodegenComponents.h

Lines changed: 0 additions & 54 deletions
This file was deleted.

llvm/include/llvm/LinkAllIR.h

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)