pombreda / llvm-py

Automatically exported from code.google.com/p/llvm-py
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[patch] extractvalue instruction found under old name "getresult" #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The "extractvalue" instruction can be created only via Builder.getresult(). 
This naming persists (presumably) for historical reasons, but is surprising and 
violates the typically-simple mapping between LLVM instructions and llvm-py 
method names.

The attached one-line patch *adds* Builder.extract_value() as a synonym for 
Builder.getresult(). The underscore follows the convention set by 
Builder.extract_element().

Original issue reported on code.google.com by bsilverthorn on 19 Oct 2010 at 5:28

Attachments:

GoogleCodeExporter commented 9 years ago
Accepted. Change available in r103.

Original comment by mdevan.f...@gmail.com on 24 Oct 2010 at 8:47