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

Unified Diff: third_party/yasm/patched-yasm/libyasm/value.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/yasm/patched-yasm/libyasm/value.h ('k') | third_party/yasm/patched-yasm/libyasm/xmalloc.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/yasm/patched-yasm/libyasm/value.c
===================================================================
--- third_party/yasm/patched-yasm/libyasm/value.c (revision 165590)
+++ third_party/yasm/patched-yasm/libyasm/value.c (working copy)
@@ -25,7 +25,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include "util.h"
-/*@unused@*/ RCSID("$Id: value.c 2220 2009-07-24 19:01:35Z peter $");
#include "libyasm-stdint.h"
#include "coretype.h"
@@ -453,11 +452,18 @@
yasm_value_initialize(value, NULL, size);
return 0;
}
+ yasm_value_initialize(value, e, size);
+ return yasm_value_finalize(value, precbc);
+}
- yasm_value_initialize(value,
- yasm_expr__level_tree(e, 1, 1, 0, 0, NULL, NULL),
- size);
+int
+yasm_value_finalize(yasm_value *value, yasm_bytecode *precbc)
+{
+ if (!value->abs)
+ return 0;
+ value->abs = yasm_expr__level_tree(value->abs, 1, 1, 0, 0, NULL, NULL);
+
/* quit early if there was an issue in simplify() */
if (yasm_error_occurred())
return 1;
@@ -549,13 +555,6 @@
return 0;
}
-int
-yasm_value_finalize(yasm_value *value, yasm_bytecode *precbc)
-{
- unsigned int valsize = value->size;
- return yasm_value_finalize_expr(value, value->abs, precbc, valsize);
-}
-
yasm_intnum *
yasm_value_get_intnum(yasm_value *value, yasm_bytecode *bc, int calc_bc_dist)
{
« no previous file with comments | « third_party/yasm/patched-yasm/libyasm/value.h ('k') | third_party/yasm/patched-yasm/libyasm/xmalloc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698