Index: llvm/include/llvm/Transforms/Utils/SizeOpts.h =================================================================== --- llvm/include/llvm/Transforms/Utils/SizeOpts.h +++ llvm/include/llvm/Transforms/Utils/SizeOpts.h @@ -17,15 +17,13 @@ #include "llvm/Analysis/ProfileSummaryInfo.h" #include "llvm/Support/CommandLine.h" -using namespace llvm; - -extern cl::opt EnablePGSO; -extern cl::opt PGSOLargeWorkingSetSizeOnly; -extern cl::opt PGSOIRPassOrTestOnly; -extern cl::opt PGSOColdCodeOnly; -extern cl::opt ForcePGSO; -extern cl::opt PgsoCutoffInstrProf; -extern cl::opt PgsoCutoffSampleProf; +extern llvm::cl::opt EnablePGSO; +extern llvm::cl::opt PGSOLargeWorkingSetSizeOnly; +extern llvm::cl::opt PGSOIRPassOrTestOnly; +extern llvm::cl::opt PGSOColdCodeOnly; +extern llvm::cl::opt ForcePGSO; +extern llvm::cl::opt PgsoCutoffInstrProf; +extern llvm::cl::opt PgsoCutoffSampleProf; namespace llvm { Index: llvm/lib/Target/RISCV/RISCVInstrInfo.cpp =================================================================== --- llvm/lib/Target/RISCV/RISCVInstrInfo.cpp +++ llvm/lib/Target/RISCV/RISCVInstrInfo.cpp @@ -24,14 +24,14 @@ #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/TargetRegistry.h" +using namespace llvm; + #define GEN_CHECK_COMPRESS_INSTR #include "RISCVGenCompressInstEmitter.inc" #define GET_INSTRINFO_CTOR_DTOR #include "RISCVGenInstrInfo.inc" -using namespace llvm; - RISCVInstrInfo::RISCVInstrInfo(RISCVSubtarget &STI) : RISCVGenInstrInfo(RISCV::ADJCALLSTACKDOWN, RISCV::ADJCALLSTACKUP), STI(STI) {}