Module: LLVM::PointerIdentity
- Included in:
- Module, PassManagerBuilder, Target, TargetMachine, Type, Value
- Defined in:
- lib/llvm.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks if the value is equal to other.
-
#eql?(other) ⇒ Boolean
Checks if the value is equivalent to other.
-
#hash ⇒ Object
Computes hash.
- #to_ptr ⇒ Object
Instance Method Details
#==(other) ⇒ Object
Checks if the value is equal to other.
14 15 16 17 |
# File 'lib/llvm.rb', line 14 def ==(other) other.respond_to?(:to_ptr) && @ptr == other.to_ptr end |
#eql?(other) ⇒ Boolean
Checks if the value is equivalent to other.
25 26 27 |
# File 'lib/llvm.rb', line 25 def eql?(other) self == other end |
#hash ⇒ Object
Computes hash.
20 21 22 |
# File 'lib/llvm.rb', line 20 def hash @ptr.address.hash end |
#to_ptr ⇒ Object
9 10 11 |
# File 'lib/llvm.rb', line 9 def to_ptr @ptr end |