mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Use the new LLVM is_class template instead of the boost one, allowing us to
remove our dependency on boost! Thanks to Reid Spencer for making this possible! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11785 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5c4d53a4d1
commit
7b3d73b7ec
@ -20,14 +20,15 @@
|
||||
#ifndef SUPPORT_COMMANDLINE_H
|
||||
#define SUPPORT_COMMANDLINE_H
|
||||
|
||||
#include "Support/type_traits.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <cstdarg>
|
||||
#include <cassert>
|
||||
#include "boost/type_traits/object_traits.hpp"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
/// cl Namespace - This namespace contains all of the command line option
|
||||
/// processing machinery. It is intentionally a short name to make qualified
|
||||
/// usage concise.
|
||||
@ -719,7 +720,7 @@ template <class DataType, bool ExternalStorage = false,
|
||||
class ParserClass = parser<DataType> >
|
||||
class opt : public Option,
|
||||
public opt_storage<DataType, ExternalStorage,
|
||||
::boost::is_class<DataType>::value> {
|
||||
is_class<DataType>::value> {
|
||||
ParserClass Parser;
|
||||
|
||||
virtual bool handleOccurrence(const char *ArgName, const std::string &Arg) {
|
||||
|
@ -20,14 +20,15 @@
|
||||
#ifndef SUPPORT_COMMANDLINE_H
|
||||
#define SUPPORT_COMMANDLINE_H
|
||||
|
||||
#include "Support/type_traits.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <cstdarg>
|
||||
#include <cassert>
|
||||
#include "boost/type_traits/object_traits.hpp"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
/// cl Namespace - This namespace contains all of the command line option
|
||||
/// processing machinery. It is intentionally a short name to make qualified
|
||||
/// usage concise.
|
||||
@ -719,7 +720,7 @@ template <class DataType, bool ExternalStorage = false,
|
||||
class ParserClass = parser<DataType> >
|
||||
class opt : public Option,
|
||||
public opt_storage<DataType, ExternalStorage,
|
||||
::boost::is_class<DataType>::value> {
|
||||
is_class<DataType>::value> {
|
||||
ParserClass Parser;
|
||||
|
||||
virtual bool handleOccurrence(const char *ArgName, const std::string &Arg) {
|
||||
|
Loading…
Reference in New Issue
Block a user