mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
Expose parameter attributes via C bindings.
Patch by Anders Johnsen! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50360 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#define LLVM_ARGUMENT_H
|
||||
|
||||
#include "llvm/Value.h"
|
||||
#include "llvm/ParameterAttributes.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -60,7 +61,13 @@ public:
|
||||
/// hasSRetAttr - Return true if this argument has the sret attribute on it in
|
||||
/// its containing function.
|
||||
bool hasStructRetAttr() const;
|
||||
|
||||
/// addAttr - Add a ParamAttr to an argument
|
||||
void addAttr(ParameterAttributes);
|
||||
|
||||
/// removeAttr - Remove a ParamAttr from an argument
|
||||
void removeAttr(ParameterAttributes);
|
||||
|
||||
virtual void print(std::ostream &OS) const;
|
||||
void print(std::ostream *OS) const {
|
||||
if (OS) print(*OS);
|
||||
|
||||
Reference in New Issue
Block a user