Unverified Commit f5567220 authored by Sahil's avatar Sahil Committed by GitHub
Browse files

Remove CONSTEXPR define. (#5862)

DynamoRIO now has support for C++11 everywhere. This removes the
unnecessary CONSTEXPR define .

Issue: #5857 
Showing with 4 additions and 11 deletions
+4 -11
......@@ -96,13 +96,6 @@
# define END_PACKED_STRUCTURE __attribute__((__packed__))
#endif
/* TODO(i#2924): Remove this and others like it once we stop supporting VS2013. */
#if defined(WINDOWS) && _MSC_VER < 1900
# define CONSTEXPR const /* 'constexpr' not supported */
#else
# define CONSTEXPR constexpr
#endif
#ifndef __has_cpp_attribute
# define __has_cpp_attribute(x) 0 // Compatibility with non-clang compilers.
#endif
......
......@@ -537,10 +537,10 @@ private:
free_custom_module_data(void *data);
// These identify the 4 fields we store in the label data area array.
static CONSTEXPR int LABEL_DATA_ELIDED_INDEX = 0; // Index among all operands.
static CONSTEXPR int LABEL_DATA_ELIDED_MEMOP_INDEX = 1; // Index among memory ops.
static CONSTEXPR int LABEL_DATA_ELIDED_IS_WRITE = 2;
static CONSTEXPR int LABEL_DATA_ELIDED_NEEDS_BASE = 3;
static constexpr int LABEL_DATA_ELIDED_INDEX = 0; // Index among all operands.
static constexpr int LABEL_DATA_ELIDED_MEMOP_INDEX = 1; // Index among memory ops.
static constexpr int LABEL_DATA_ELIDED_IS_WRITE = 2;
static constexpr int LABEL_DATA_ELIDED_NEEDS_BASE = 3;
ptr_uint_t elide_memref_note_;
bool standalone_ = false;
file_t modfile_ = INVALID_FILE;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment