Skip to content

Commit eca4006

Browse files
committedDec 23, 2019
[NFC] Move OptionUtils from Basic to Driver
Differential Revision: https://reviews.llvm.org/D71802
1 parent 109e4e3 commit eca4006

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed
 

‎clang/include/clang/Basic/OptionUtils.h ‎clang/include/clang/Driver/OptionUtils.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#ifndef LLVM_CLANG_BASIC_OPTIONUTILS_H
14-
#define LLVM_CLANG_BASIC_OPTIONUTILS_H
13+
#ifndef LLVM_CLANG_DRIVER_OPTIONUTILS_H
14+
#define LLVM_CLANG_DRIVER_OPTIONUTILS_H
1515

1616
#include "clang/Basic/Diagnostic.h"
1717
#include "clang/Basic/LLVM.h"
@@ -55,4 +55,4 @@ inline uint64_t getLastArgUInt64Value(const llvm::opt::ArgList &Args,
5555

5656
} // namespace clang
5757

58-
#endif // LLVM_CLANG_BASIC_OPTIONUTILS_H
58+
#endif // LLVM_CLANG_DRIVER_OPTIONUTILS_H

‎clang/include/clang/Frontend/Utils.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#include "clang/Basic/Diagnostic.h"
1717
#include "clang/Basic/LLVM.h"
18-
#include "clang/Basic/OptionUtils.h"
18+
#include "clang/Driver/OptionUtils.h"
1919
#include "clang/Frontend/DependencyOutputOptions.h"
2020
#include "llvm/ADT/ArrayRef.h"
2121
#include "llvm/ADT/IntrusiveRefCntPtr.h"

‎clang/lib/Basic/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
set(LLVM_LINK_COMPONENTS
22
Core
33
MC
4-
Option
54
Support
65
)
76

@@ -56,7 +55,6 @@ add_clang_library(clangBasic
5655
ObjCRuntime.cpp
5756
OpenMPKinds.cpp
5857
OperatorPrecedence.cpp
59-
OptionUtils.cpp
6058
SanitizerBlacklist.cpp
6159
SanitizerSpecialCaseList.cpp
6260
Sanitizers.cpp

‎clang/lib/Driver/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ add_clang_library(clangDriver
1919
DriverOptions.cpp
2020
Job.cpp
2121
Multilib.cpp
22+
OptionUtils.cpp
2223
Phases.cpp
2324
SanitizerArgs.cpp
2425
Tool.cpp

‎clang/lib/Basic/OptionUtils.cpp ‎clang/lib/Driver/OptionUtils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "clang/Basic/OptionUtils.h"
109
#include "clang/Basic/Diagnostic.h"
1110
#include "clang/Basic/DiagnosticDriver.h"
11+
#include "clang/Driver/OptionUtils.h"
1212
#include "llvm/Option/ArgList.h"
1313

1414
using namespace clang;

0 commit comments

Comments
 (0)