mirror of
https://github.com/obfuscator-llvm/obfuscator
synced 2026-06-08 16:28:34 +00:00
Initial commit of LLVM 3.4
This commit is contained in:
@@ -80,6 +80,24 @@ TimeValue self_process::get_wall_time() const {
|
||||
#endif
|
||||
|
||||
|
||||
#define COLOR(FGBG, CODE, BOLD) "\033[0;" BOLD FGBG CODE "m"
|
||||
|
||||
#define ALLCOLORS(FGBG,BOLD) {\
|
||||
COLOR(FGBG, "0", BOLD),\
|
||||
COLOR(FGBG, "1", BOLD),\
|
||||
COLOR(FGBG, "2", BOLD),\
|
||||
COLOR(FGBG, "3", BOLD),\
|
||||
COLOR(FGBG, "4", BOLD),\
|
||||
COLOR(FGBG, "5", BOLD),\
|
||||
COLOR(FGBG, "6", BOLD),\
|
||||
COLOR(FGBG, "7", BOLD)\
|
||||
}
|
||||
|
||||
static const char colorcodes[2][2][8][10] = {
|
||||
{ ALLCOLORS("3",""), ALLCOLORS("3","1;") },
|
||||
{ ALLCOLORS("4",""), ALLCOLORS("4","1;") }
|
||||
};
|
||||
|
||||
// Include the platform-specific parts of this class.
|
||||
#ifdef LLVM_ON_UNIX
|
||||
#include "Unix/Process.inc"
|
||||
|
||||
Reference in New Issue
Block a user