Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Side by Side Diff: third_party/yasm/patched-yasm/modules/parsers/gas/gas-parse-intel.c

Issue 11364046: Update Yasm to 1.2.0 (Yasm Part 1/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * GAS-compatible parser Intel syntax support 2 * GAS-compatible parser Intel syntax support
3 * 3 *
4 * Copyright (C) 2010 Alexei Svitkine 4 * Copyright (C) 2010 Alexei Svitkine
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 10 matching lines...) Expand all
21 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS BE 21 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS BE
22 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 22 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGE. 28 * POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 #include <util.h> 30 #include <util.h>
31 RCSID("$Id: gas-parse-intel.c 2279 2010-01-19 07:57:43Z peter $");
32 31
33 #include <libyasm.h> 32 #include <libyasm.h>
34 33
35 #include "modules/parsers/gas/gas-parser.h" 34 #include "modules/parsers/gas/gas-parser.h"
36 #include "modules/parsers/nasm/nasm-parser-struct.h" 35 #include "modules/parsers/nasm/nasm-parser-struct.h"
37 36
38 extern yasm_bytecode *gas_intel_syntax_parse_instr(yasm_parser_nasm *parser_nasm , unsigned char *instr); 37 extern yasm_bytecode *gas_intel_syntax_parse_instr(yasm_parser_nasm *parser_nasm , unsigned char *instr);
39 38
40 #define SET_FIELDS(to, from) \ 39 #define SET_FIELDS(to, from) \
41 (to)->object = (from)->object; \ 40 (to)->object = (from)->object; \
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 81
83 bc = gas_intel_syntax_parse_instr(&parser_nasm, line); 82 bc = gas_intel_syntax_parse_instr(&parser_nasm, line);
84 83
85 SET_FIELDS(parser_gas, &parser_nasm); 84 SET_FIELDS(parser_gas, &parser_nasm);
86 yasm_arch_set_var(parser_gas->object->arch, "gas_intel_mode", 0); 85 yasm_arch_set_var(parser_gas->object->arch, "gas_intel_mode", 0);
87 86
88 yasm_xfree(line); 87 yasm_xfree(line);
89 88
90 return bc; 89 return bc;
91 } 90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698