glsl/generate_builtins.py: Remove regexp to kill pointer addresses.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Jun 2011 00:43:32 +0000 (17:43 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 15 Jun 2011 01:29:48 +0000 (18:29 -0700)
Commit 56ef62d9885f805bbfb2243dc860ff425d5b4d3b
"glsl: Generate readable unique names at print time."
changed ir_print_visitor to not generate @0x1234567 suffixes except
where necessary.  So there's no need to manually remove them.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/builtins/tools/generate_builtins.py

index edd3c70e00bdcdc078d171a0f2e2fe07b0feec57..17d528c2180992ce8a054c5567b8b55f788adb22 100755 (executable)
@@ -82,10 +82,6 @@ def write_profile(filename, profile):
     kill_globals = re.compile(r'^\(declare.*\n', re.MULTILINE)
     proto_ir = kill_globals.sub('', proto_ir)
 
-    # Kill pointer addresses.  They're not necessary in prototypes and just
-    # clutter the diff output.
-    proto_ir = re.sub(r'@0x[0-9a-f]+', '', proto_ir)
-
     print 'static const char prototypes_for_' + profile + '[] ='
     print stringify(proto_ir), ';'