Ignore:
Timestamp:
May 11, 2018, 9:40:16 PM (11 months ago)
Author:
cameron
Message:

Eliminate dependency on llvm/CodeGen/CommandFlags.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain/toolchain.h

    r5841 r6030  
    11/*
    2  *  Copyright (c) 2017 International Characters.
     2 *  Copyright (c) 2018 International Characters.
    33 *  This software is licensed to the public under the Open Software License 3.0.
    44 *  icgrep is a trademark of International Characters.
     
    2323#define CL_ENUM_VAL_SENTINEL
    2424#endif
    25 
    26 // FIXME: llvm/CodeGen/CommandFlags.h can only be included once or the various cl::opt causes multiple definition
    27 // errors. To bypass for now, the relevant options and functions are accessible from here. Re-evaluate with later
    28 // versions of LLVM.
    2925
    3026namespace llvm { namespace cl { class OptionCategory; } }
     
    6864extern unsigned GroupNum;
    6965extern std::string ProgramName;
    70 extern llvm::TargetOptions Options;
    71 extern const llvm::Reloc::Model RelocModel;
    72 extern const llvm::CodeModel::Model CMModel;
    73 extern const std::string MArch;
    74 extern const std::string RunPass;
    75 extern const llvm::TargetMachine::CodeGenFileType FileType;
    76 extern const std::string StopAfter;
    77 extern const std::string StartAfter;
    78 
    79 std::string getCPUStr();
    80 std::string getFeaturesStr();
    81 void setFunctionAttributes(llvm::StringRef CPU, llvm::StringRef Features, llvm::Module &M);
     66extern llvm::TargetOptions target_Options;
    8267
    8368void ParseCommandLineOptions(int argc, const char *const *argv, std::initializer_list<const llvm::cl::OptionCategory *> hiding = {});
Note: See TracChangeset for help on using the changeset viewer.