Displaying 1 result from an estimated 1 matches for "makesound".
2018 May 03
3
RFC: virtual-like methods via LLVM-style RTTI
...nal
// instruction is generated to compute (or load) the pointer to the vtable
// (LEA or MOV respectively), and the compiler is smart enough to hoist the
// LEA/MOV outside of loops and cache the result.
//
// For subclasses, virtual methods are declared like so:
//
// LLVM_VIRTUAL_THUNK(BaseTy, makeSound)
// void LLVM_VIRTUAL(makeSound)(int howLoud) { /* normal body */ }
//
// For base classes, one must do a little more work. The simplest case is an
// abstract virtual method in a type called 'Base':
//
// void LLVM_ABSTRACT_VIRTUAL(BaseTy, makeSound)
//
// And then later in the header...