1*07e13b76SRoland McGrath# ====-- Object class for libc function headers ---------------*- python -*--==# 2*07e13b76SRoland McGrath# 3*07e13b76SRoland McGrath# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*07e13b76SRoland McGrath# See https://llvm.org/LICENSE.txt for license information. 5*07e13b76SRoland McGrath# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*07e13b76SRoland McGrath# 7*07e13b76SRoland McGrath# ==-------------------------------------------------------------------------==# 8*07e13b76SRoland McGrath 9*07e13b76SRoland McGrath 10*07e13b76SRoland McGrathclass Object: 11*07e13b76SRoland McGrath def __init__(self, name, type): 12*07e13b76SRoland McGrath self.name = name 13*07e13b76SRoland McGrath self.type = type 14*07e13b76SRoland McGrath 15*07e13b76SRoland McGrath def __str__(self): 16*07e13b76SRoland McGrath return f"extern {self.type} {self.name};" 17