This patch adds the entrypoint for printf. With this, building a "hello world" program with just LLVM-libc is possible. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D126831
21 lines
606 B
C++
21 lines
606 B
C++
//===-- Implementation header of printf -------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIBC_SRC_STDIO_PRINTF_H
|
|
#define LLVM_LIBC_SRC_STDIO_PRINTF_H
|
|
|
|
#include <stdio.h>
|
|
|
|
namespace __llvm_libc {
|
|
|
|
int printf(const char *__restrict format, ...);
|
|
|
|
} // namespace __llvm_libc
|
|
|
|
#endif // LLVM_LIBC_SRC_STDIO_PRINTF_H
|