diff options
author | Greg Clayton <gclayton@apple.com> | 2015-01-21 21:51:02 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-01-21 21:51:02 +0000 |
commit | 7bd4c60043d995d21ced0cdf0d6c67b8ce015177 (patch) | |
tree | e2e9bfedae8ba337cf29e02a96c89c6cd7453b57 /lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp | |
parent | 24a777238ee9849a05dcb2aa230ad92cb2287e22 (diff) | |
download | bcm5719-llvm-7bd4c60043d995d21ced0cdf0d6c67b8ce015177.tar.gz bcm5719-llvm-7bd4c60043d995d21ced0cdf0d6c67b8ce015177.zip |
Abstract the details from regex.h a bit more by not allowing people to specify compile and execute flags for regular expressions. Also enable better regular expressions if they are available by check if the REG_ENHANCED is available and using it if it is.
Since REG_ENHANCED is available on MacOSX, this allow the use of \d (digits) \b (word boundaries) and much more without affecting other systems.
<rdar://problem/12082562>
llvm-svn: 226704
Diffstat (limited to 'lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp')
-rw-r--r-- | lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp b/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp index 9af0da3fe86..2f9012222c0 100644 --- a/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp +++ b/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp @@ -371,7 +371,7 @@ public: } } - static RegularExpression s_regex("[ \t]*([^ ^\t]+)[ \t]*([^ ^\t].*)?", REG_EXTENDED); + static RegularExpression s_regex("[ \t]*([^ ^\t]+)[ \t]*([^ ^\t].*)?"); RegularExpression::Match matches(3); |